Splunk Search

How to edit my search to alert when a certain field value occurs more than 10 times in an hour and display results in a table?

kiran331
Builder

Hi all,

I'm trying to trigger an alert when an ID occurs more than 10 times in an hour and alert should be in a table format. This is the search I'm using:

index="abc"|stats count by ID|where count>10| table count ID TIME  MACHINE NAME
0 Karma
1 Solution

sundareshr
Legend

In your search, the only fields available after the stats command will be count and ID. You need to include the other fields as well. Try something like this

index="abc"|bin span=1h _time as Time | eventstats count AS occurrence by Time ID|where occurrence >10| table count ID Time MACHINE NAME

View solution in original post

sundareshr
Legend

In your search, the only fields available after the stats command will be count and ID. You need to include the other fields as well. Try something like this

index="abc"|bin span=1h _time as Time | eventstats count AS occurrence by Time ID|where occurrence >10| table count ID Time MACHINE NAME
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...