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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...