Splunk Search

Set Expiry Time for a saved Search with an action script

ppurokit
Path Finder

Hi All,

I have a set of saved searches which i have scheduled for run for every 15 min interval.
Each of the saved search triggers a script. By Default , the expiry time of the saved search which triggers a script is 10 min.
But i want to set the expiry time of these saved searches as 1 hr and this setting needs to be set as global.

So if the logged user creates the saved search from any app, the expiry time should be set as 1 hr.

I already created a alert_actions.conf file in the app which i have created and set the following

[script]
ttl = 3600

Setting this will make it only available for that specific app. How can i make it a global setting?

Please share your thoughts and suggestions.

0 Karma

dart
Splunk Employee
Splunk Employee

In general you can also do this by setting the ttl globally for all saved searches:

# in $SPLUNK_HOME/etc/system/local/savedsearches.conf
# set default artifact time to live to 1h
dispatch.ttl           = 1h

linu1988
Champion

setting in etc\system folder will make it global

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Event Series: The Agentic SOC: Trust Before Autonomy

AI is fundamentally changing security operations, but true progress requires more than just automation—it ...

Free Professional Services for .conf26 Attendees

This year at .conf26, we are doing something a little different. We are bringing the best minds from ...

Defend at Machine Speed: Your Guide to Security Sessions at .conf26

Splunk .conf26   With threats moving at machine speed and attack surfaces expanding across hybrid ...