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!

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, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...