Alerting

How to create a daily alert to trigger if any new host is sending data to an index?

splunker9999
Path Finder

Hi,

We need to create an alert to trigger if there is any new host sending data to an index. Would be good if the report runs once every 24 hrs.

Can someone please advise?

valiquet
Contributor

This will keep track of hosts in a CSV in case the search don't run for a day
| metadata type=hosts index=* OR index=_* NOT [|inputlookup hosts | format] | fild host |dedup host |outputlookup hosts

0 Karma

somesoni2
Revered Legend

Try something like this. This should give you list of host who have first reported yesterday, so you can run this search daily after midnight.

| metadata type=hosts index=* OR index=_* | where firstTime>relative_time(now(),"-1d@d") 
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...