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
Revered Legend

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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...