Deployment Architecture

Day wise report for newly added devices starts forwarding data for the first time

sunnybmv
Engager

Hi
I am trying to get a query to get the list of devices everyday when a new splunk client starts forwarding data for the first time?

Thanks & regards,
Sunnybmv

Tags (2)

somesoni2
SplunkTrust
SplunkTrust

Try this

1) Create a saved search with following search query

| metadata type=hosts index=* | eval duration=now()-firstTime | where duration<87300 | rename host as Client firstTime as FirstReportedOn totalCount as EventReported | table Client FirstReportedOn EventReported

(in above query 87300 is 86400 (1 day) + 15 min, so it will list all the host that reported yesterday, for the first time)

2) Schedule this saved search to run at every night at 12:15 AM

cron schedule - 0 15 * * *

3) Setup appropriate alert action (sending email etc).

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