Splunk Search

Which is this the best way to get a count of events indexed for entire environment?

bgagliardi1
Path Finder

Blockquote
1.
| eventcount summarize=false | stats sum(count)

Blockquote

OR

Blockquote
2.
https://docs.splunk.com/Documentation/Splunk/7.2.3/Troubleshooting/Aboutmetricslog

index=_internal source=*metrics.log group=thruput | stats sum(ev)

Blockquote

My use case is currently for last 30 days, and I am getting very different results. The first search command appears to be identical to the dashboard that shows up on the "What to Search" section on the search and reporting home page.

The metrics.log I want to believe to be more accurate given that I can't do a time modifier on the first search command, "| eventcount."

Tags (1)
0 Karma

vishaltaneja070
Motivator

Hello @bgagliardi1

What about this:

| tstats count WHERE index=*
0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...