Reporting

Saved Search Deletion

tincupchalice
Path Finder

I have several saved searches that are scheduled at staggered times in the afternoon. After several kick off, I reach my disk quota limit and the other searches try to kick off and hang. When I come in in the morning I still have several searches at 100% but failing to finalize and send the respective csvs via email. Outside of bumping my disk quota limits, is there a setting for saved searches that is some big secret where after the email is sent, splunk will delete it immediately? I've tried setting alerts and the what not to 1 sec, but no dice.

Thanks,

Bob

0 Karma

tincupchalice
Path Finder

Answering my own question...
I am going to try the dispatch method here, but what a pain we can't do this through the interface

*******

dispatch search options

*******

dispatch.ttl = [p]
* Indicates the time to live (in seconds) for the artifacts of the scheduled search, if no
actions are triggered.
* If an action is triggered Splunk changes the ttl to that action's ttl. If multiple actions are
triggered, Splunk applies the maximum ttl to the artifacts. To set the action's ttl, refer
to alert_actions.conf.spec.
* If the integer is followed by the letter 'p' Splunk interprets the ttl as a multiple of the
scheduled search's execution period (e.g. if the search is scheduled to run hourly and ttl is set to 2p
the ttl of the artifacts will be set to 2 hours).
* Defaults to 2p (that is, 2 x the period of the scheduled search).

gkanapathy
Splunk Employee
Splunk Employee

in fact, if you set up email alerts, the ttl is set to 1 day.

0 Karma
Get Updates on the Splunk Community!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...