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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...