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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...