Splunk Search

Why does my search for total index size per day not match the Distributed Management Console?

ankithreddy777
Contributor

I have searched for data ingestion rate per day for a particular index using below search. And verified it with index size details for all servers in console of indexer cluster master under Distributed Management Console. But the total indexes size does not match between them.

index=_internal source="/opt/splunk/var/log/splunk/metrics.log" series=indexname | eval MB=kb/1024 | search group="per_index_thruput" | timechart span=1d sum(MB) by series

kiran331
Builder

metrics.log will show the size of index on all indexers including the replication where as license_usage.log will show the license usage by index

use this search for license usage by index.

index=_internal source=*license_usage.log type="Usage" | eval h=if(len(h)=0 OR isnull(h),"(SQUASHED)",h) | eval s=if(len(s)=0 OR isnull(s),"(SQUASHED)",s) | eval idx=if(len(idx)=0 OR isnull(idx),"(UNKNOWN)",idx) | stats sum(b) as b by idx| eval GB=(((b/1024)/1024))/1000

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...