Splunk Search

Is there a way to monitor the number of files in the dispatch directory over time?

robertlynch2020
Influencer

Hi 

I am looking to monitor the dispatch directory over time.

I know I can get the current results by using this

| rest /services/search/jobs | stats count

But I am looking to run the test over 1 minute and have a breakdown per minute of the increase in dispatch over time.

Rob 

Labels (1)
0 Karma

robertlynch2020
Influencer

Hi

https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-the-number-of-files-in-the-d...

This gives me the current dispatch count - I am looking to make a time chart. Using rest _time does not come back so I can't make a time chart.

I am thinking if I run the command each minute in a saved search and output to a .csv with a timestamp that might work!

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Are you looking dispatch directory or how many search jobs are running? If later then you can use _audit index to get number of jobs.
0 Karma

sainag_splunk
Splunk Employee
Splunk Employee

This has been answered here: https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-monitor-the-number-of-files-in-the-d...

You can leverage this search and see if that helps for your monitoring.

index=_internal sourcetype=splunkd The number of search artifacts in the dispatch directory is higher than recommended TERM(count=*)
| timechart span=1h max(count)

 

 

Please upvote if this is helpful.

If this helps, Upvote!!!!
Together we make the Splunk Community stronger 
0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...