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!

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...