Reporting

How to Set Expiry Time for Saved Scheduled Search Results to 7 days

Polarbear
Engager

I have a scheduled job that runs every month, storing monthly report and sending an email with the search results.

This setup works well, but I've encountered a problem: the search results expire after 24 hours.

it will show me the search has probably expired or deleted.

How can i set to 7 days  to prevent expired?

Labels (1)
0 Karma

deepakc
Builder

If you click - go into to the saved search, there is a setting called 'Job Settings',  in there is another setting called 'lifetime', this has a setting of 10 minutes or 7 days, perhaps this will help you.  

Polarbear
Engager

Thank you for your reply!

Is the "lifetime" setting permanent, or does it need to be configured every time? If it's not permanent, is there any way to set it permanently for saved searches

Tags (1)
0 Karma

deepakc
Builder

It looks like you can (not someting I've done as I normally use the default, so worth try it)

From what I gather you can edit for savedsearch.conf file and under your named saved search stanza and add the dispatch.ttl setting

Example

/opt/splunk/etc/my_app/local/savedsaearch.conf

[my_saved_search]
dispatch.ttl = 604800

Have a look at this link

https://docs.splunk.com/Documentation/Splunk/9.2.1/Search/Extendjoblifetimes

0 Karma
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...