Getting Data In

List/count no of all file my forwarder is monitoring

robertlynch2020
Influencer

Hi

I have an environment that is increasing in files each day, this I think is causing high CPU on the forwarders as the number of files is increasing.

I am looking to prove this, so is there a command I can run on the forwarder that will tell me the number of files it is monitoring, etc... or something that will give me data on this topic?

Regards

Robert Lynch

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The command splunk list monitor will tell you which files a forwarder is monitoring, but not give a number (the shell can help with that) nor show how the list has changed over time.

Try this query in a search head, instead.

| tstats prestats=true dc(source) as files where index=* host=<forwarder-name> by _time
| timechart dc(source) as files
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

The command splunk list monitor will tell you which files a forwarder is monitoring, but not give a number (the shell can help with that) nor show how the list has changed over time.

Try this query in a search head, instead.

| tstats prestats=true dc(source) as files where index=* host=<forwarder-name> by _time
| timechart dc(source) as files
---
If this reply helps you, Karma would be appreciated.
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...