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