Splunk Search

Is there a way to search the count of how many times the same log message got logged seconds apart from each other?

2009652
New Member

Is there a way to see if the same log message got logged seconds apart from each other and get a count on how many times such back-to-back activity occurred in a given time period?

Any help appreciated.

Thanks in advance.

Tags (3)
0 Karma

nolesrb5343
Explorer

Do you know what the message is, or is it dynamic?

0 Karma

sundareshr
Legend

You may be able to achieve this using the transaction command with the maxpause option. Here's some documentation on that. Your search would look something like this

your base search | transaction message maxpause=60m | stats count by message

http://docs.splunk.com/Documentation/Splunk/6.4.0/SearchReference/Transaction

0 Karma
Get Updates on the Splunk Community!

More Control Over Your Monitoring Costs with Archived Metrics!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...