I am creating a dashboard to show any new logs that are added to our environment within a period of time.
For example - if we started ingesting AWS logs and Azure logs 2 days ago is there a way I can create a dashboard that shows these 2 new ingestions?
I am having trouble making a search query that can display a new value with the name of the recently added index added to the environment. Does anyone have any suggestions on how to solve this? Thanks.
Give this a try. Use a larger time-range (e.g. last 7 days) and adjust filter as necessary. Current example searches for new data that was added within last 2 days (searching data for last 7 days).
| tstats min(_indextime) as IngestTime WHERE index=* OR index=_* earliest=-7d by index sourcetype
| convert ctime(IngestTime) as IngestTimeHuman
| where IngestTime> relative_time(now(),"-24h")
Give this a try. Use a larger time-range (e.g. last 7 days) and adjust filter as necessary. Current example searches for new data that was added within last 2 days (searching data for last 7 days).
| tstats min(_indextime) as IngestTime WHERE index=* OR index=_* earliest=-7d by index sourcetype
| convert ctime(IngestTime) as IngestTimeHuman
| where IngestTime> relative_time(now(),"-24h")