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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...