Demo entry 6677708

Splunk SPL search processing language


Submitted by FKJ on Dec 04, 2017 at 12:27
Language: Bash. Code size: 371 Bytes.

| REST /services/data/indexes 
| fields id, currentDBSizeMB, totalEventCount, splunk_server
| eval currentDBSizeGB=round(currentDBSizeMB/1024,2)
| eval currentDBSizeTB=round(currentDBSizeMB/1024/1024,2)
| search id="*fmk*" splunk_server="splunkindexer0*" 
| stats sum(currentDBSizeGB) as "Database Size GB" by splunk_server
| rename splunk_server as Host

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).