Splunk Search

How to detect repeating log entries?

greathera
Explorer

Hello,
When my application fails it will generate repeating log lines. I must detect where there are repeating log entries to determine what thread is causing the problem. Each time there is a failure the content of the repeating logs will be different depending on the thread / process that is having the problem. Can Splunk detect a sequence of repeating log entries? How would I do this? I see there is a md5 function and wonder if this can used to generate a hash per log line and then compare each new log entry to the one before it (or the log entry two lines back?).
Thank you for any help on this.
Zusa

Tags (2)
0 Karma

greathera
Explorer

Hi gfuente,

Thank you for pointing this out. I will test to see if I can get it to work.

Much appreciation,

Zusa

0 Karma

gfuente
Motivator

Hello

You could use the cluster command:

http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Cluster

That groups similar events.

Regards

greathera
Explorer

Hi gfuente,

Thank you for pointing this out. I will test to see if I can get it to work.

Much appreciation,

Zusa

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...