Splunk Search

Exclude events that do not occur each day from search

C4r7m4n
Path Finder

Hello

I have this search:

earliest=-7d@d latest=@d  source="/var/log/snmptrapfmt.log" (timeout_url="*.GE" OR timeout_url="*.tv" OR unavailable) AND NOT (timeout_url="*.com") | timechart count by timeout_url

and the result of this search is here: http://imageshack.us/photo/my-images/10/mollq.jpg/

Does somebody know how to remove/exclude from search events that do not occur in each day e.g. l(pink), w(dark green)

Tags (3)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

Perhaps this will help you...

your_search | eventstats dc(date_wday) AS daysaweek by url | where daysaweek > 6

Perhaps...

/kristian

View solution in original post

0 Karma

kristian_kolb
Ultra Champion

Perhaps this will help you...

your_search | eventstats dc(date_wday) AS daysaweek by url | where daysaweek > 6

Perhaps...

/kristian

0 Karma

C4r7m4n
Path Finder

Thanks @kristian.kolb, it's working 😉

0 Karma
Get Updates on the Splunk Community!

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!

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