Alerting

How can I filter the same source IP amount that is greater than 1000 per hour?

lllidan
New Member

I want to monitor the connection status of some network device, and I want to trigger an alert which the same source IP address access the device greater than 1000 per hour. How can I achieve this requirement?

0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust

The name of your ip address field might be different but the below example would work if the field is called ip:
... _index_earliest=-65m _index_latest=-5m | stats count by ip | where count>1000

I added index earliest/latest so the search has a 5 minute lag. This will allow for data that arrives late or with time skew to be identified too.

Schedule it to run every hour and alert when results are greater than 0

View solution in original post

0 Karma

jkat54
SplunkTrust
SplunkTrust

The name of your ip address field might be different but the below example would work if the field is called ip:
... _index_earliest=-65m _index_latest=-5m | stats count by ip | where count>1000

I added index earliest/latest so the search has a 5 minute lag. This will allow for data that arrives late or with time skew to be identified too.

Schedule it to run every hour and alert when results are greater than 0

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...