Splunk Search

Can Splunk Do This? Index -> backfill -> /opt/splunk/var/run/splunk/dispatch

lpolo
Motivator

I need to back fill an index from a scheduled search but the result set of the scheduled search is quite large. Therefore, the scheduled search is set up to run hourly. I do not want to increase the amount of "srchDiskQuota" in authorized.conf.
Is there way to instruct Splunk to delete the scheduled search file in "/opt/splunk/var/run/splunk/dispatch" just after it completed the index process.

Any idea ?

Thanks,
Lp

Tags (1)
0 Karma

LukeMurphey
Champion

If you are using the alert action, then you can change the action.summary_index.ttl to a low value. In the example below, the TTL is set to 120 seconds:

[some_saved_search]
action.summary_index = 1
action.summary_index._name = summary
action.summary_index.ttl = 120
cron_schedule = 45 * * * *
dispatch.earliest_time = -65m@m
dispatch.latest_time = -5m@m
search = `some_search`

This should cause the dispatch reaper to clean up the results off of disk fairly quickly.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...