Splunk Search

How to calculate the "number of files" field in the table colunm of "Files & directories

Shuhei052492
Path Finder

Hi,

I would like to know how to calculate the "number of files" field in the table colunm of "Files & directories",which is the last path of [setting]>>[Data inputs] >> [Files & directories] at Splunkweb.

I have calculated the "number of files" field at each sourcetypes with the following command, and there are the CLI results and the GUI result.

----result----

[user]# /opt/splunk/bin/splunk list monitor | grep <indexname> | grep "aaa" | wc -l
203
[user]# /opt/splunk/bin/splunk list monitor | grep <indexname> | grep "ccc" | wc -l
203
[user]# /opt/splunk/bin/splunk list monitor | grep <indexname> | grep "bbb" | wc -l
203  

alt text

Does splunk include directory when splunk calculate the "number of files" field ?
Also, Does splunk include directory when input setting has wildcard ?
If so, why is the number of ccc not different between CLI and GUI result?

I will appreciate any advice.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...