Splunk Search

Is it possible to use the same subsearch twice in a search?

pduflot
Path Finder

Hello,

Is it possible to use the same subsearch twice in a search? Of course without having Splunk to execute the search twice, but having it caching the results.

0 Karma
1 Solution

inventsekar
Ultra Champion

i think, its possible to use the same subsearch twice in a query.
also, the limits.conf has a parameter "ttl" - Time to cache a given subsearch's results, in seconds, default value 300 seconds.

https://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Aboutsubsearches
on Splunk Enterprise, limits.conf
[subsearch]
maxout =

Maximum number of results to return from a subsearch.
This value cannot be greater than or equal to 10500.
Defaults to 10000.
maxtime =

Maximum number of seconds to run a subsearch before finalizing
Defaults to 60.
ttl =

Time to cache a given subsearch's results, in seconds.
Do not set this below 120 seconds.
Defaults to 300.

View solution in original post

inventsekar
Ultra Champion

i think, its possible to use the same subsearch twice in a query.
also, the limits.conf has a parameter "ttl" - Time to cache a given subsearch's results, in seconds, default value 300 seconds.

https://docs.splunk.com/Documentation/Splunk/6.4.2/Search/Aboutsubsearches
on Splunk Enterprise, limits.conf
[subsearch]
maxout =

Maximum number of results to return from a subsearch.
This value cannot be greater than or equal to 10500.
Defaults to 10000.
maxtime =

Maximum number of seconds to run a subsearch before finalizing
Defaults to 60.
ttl =

Time to cache a given subsearch's results, in seconds.
Do not set this below 120 seconds.
Defaults to 300.

Get Updates on the Splunk Community!

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, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...