Splunk Search

Number of events indexed yesterday for an index

peter_gianusso
Communicator

Simple one that I cannot find an answer to.

I would like to know the number of events indexed yesterday for the index ili_imaging_index

thanks

Tags (2)
0 Karma
1 Solution

Ayn
Legend

Simple (but inefficient) solution:

index=ili_imaging_index earliest=-1d@d latest=@d | stats count

Somewhat more complex but much faster solution: run this scheduled search at midnight every day:

| metadata type=hosts index=ili_imaging_index | stats sum(totalCount) as totalCount

Enable summary indexing for this search, then use the difference between the totalCount values for two consecutive days to calculate how many events were indexed.

View solution in original post

0 Karma

Ayn
Legend

Simple (but inefficient) solution:

index=ili_imaging_index earliest=-1d@d latest=@d | stats count

Somewhat more complex but much faster solution: run this scheduled search at midnight every day:

| metadata type=hosts index=ili_imaging_index | stats sum(totalCount) as totalCount

Enable summary indexing for this search, then use the difference between the totalCount values for two consecutive days to calculate how many events were indexed.

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