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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...