1 |
|tstats count WHERE index=* OR index=_ BY index |
Don’t forget time modifier is required
1 |
|tstats count WHERE index=* OR index=_ BY index |
Don’t forget time modifier is required
Here is some SPL to get useful information via REST on indexes within your Splunk environment:
1 2 3 4 5 |
| REST /services/data/indexes | eval currentDBSizeMB=tostring(currentDBSizeMB, "commas") | eval totalEventCount=tostring(totalEventCount, "commas") | eval frozenTimePeriodInHours=(frozenTimePeriodInSecs/60/60) | table title splunk_server currentDBSizeMB frozenTimePeriodInHours maxTime minTime totalEventCount |
This simple Splunk query will return results for indexes that the current user (typically you) have access to: *NOTE* depending on settings this may or may not return internal indexes.
1 |
host=* | dedup index |table index |