<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: What exactly does the ttl mechanism do? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446157#M172364</link>
    <description>&lt;P&gt;I see, so for ad-hoc searches, its usage is primarily for actively viewed  searches, so the user can navigate through the pages and export the data. Right?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2019 20:18:19 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2019-03-20T20:18:19Z</dc:date>
    <item>
      <title>What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446152#M172359</link>
      <description>&lt;P&gt;Sorry, but I don't understand how ttl is used and the reason for this design paradigm. Any ideas? &lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 18:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446152#M172359</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-03-20T18:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446153#M172360</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/130718"&gt;@ddrillic&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;TTL means Time To Live, generally I have seen ttl with Splunk search artifacts. When any search run there is ttl associated with that Job for example when you run adhoc search it's default ttl is 10 min which means that once job will finish their execution, it will live for another 10 min and that search artifact will be available in dispatch directory for 10min and after that it will be removed from dispatch directory so you can't access that job result after 10 min.&lt;/P&gt;

&lt;P&gt;In Splunk when you run adhoc or schedule search there are different ttl, with schedule search ttl is depend on alert_actions as well you can check ttl for different alert actions in alert_actions.conf&lt;/P&gt;

&lt;P&gt;Splunk Doc : &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Search/Dispatchdirectoryandsearchartifacts#Dispatch_directory_maintenance" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Search/Dispatchdirectoryandsearchartifacts#Dispatch_directory_maintenance&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446153#M172360</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-09-30T00:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446154#M172361</link>
      <description>&lt;P&gt;Additionally for scheduled search default ttl is 2P (that is, 2 x the period of the scheduled search For example if schedule search run at every 1 hour then dispatch.ttl will be 2 hours) but this ttl will override by alert_actions.conf ttl if any alert(like email) has been fired by that scheduled search.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 18:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446154#M172361</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-20T18:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446155#M172362</link>
      <description>&lt;P&gt;Ok, so, let's say I run an ad-hoc search at 1:00 pm and the search interval is for 10 minutes. Then, I run the same search at 1:03 pm - how can the original search results assist me in my second search?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 19:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446155#M172362</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-03-20T19:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446156#M172363</link>
      <description>&lt;P&gt;When you run ad-hoc search at 01:00 PM and let's say it will finish in 30 seconds then that job will be available in Job Inspector until 01:10 PM and job 01:03PM will be available till 01:13PM because those are adhoc searches but here is exception if adhoc job which you ran and splunk UI is open for that job then it will not expire in 10 minute.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ttl = &amp;lt;integer&amp;gt;
* How long, in seconds, the search artifacts should be stored on disk after
  the job completes. The ttl is computed relative to the modtime of the 
  status.csv file of the job, if the file exists, or the modtime of the 
  artifact directory for the search job. 
* If a job is being actively viewed in the Splunk UI then the modtime of 
  the status.csv file is constantly updated such that the reaper does not
  remove the job from underneath.
* Default: 600 (10 minutes)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2019 19:21:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446156#M172363</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-20T19:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446157#M172364</link>
      <description>&lt;P&gt;I see, so for ad-hoc searches, its usage is primarily for actively viewed  searches, so the user can navigate through the pages and export the data. Right?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 20:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446157#M172364</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-03-20T20:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446158#M172365</link>
      <description>&lt;P&gt;ttl applies to all searches but their values vary for different scenario as I explained earlier.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 20:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446158#M172365</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-20T20:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446159#M172366</link>
      <description>&lt;P&gt;I guess that what bothers me is about the fact that these data sets that by other software applications, would be stored in memory, completely transparent to the app administrators. &lt;/P&gt;

&lt;P&gt;Here, there is an entire infrastructure surrounding this memory set, including disk storage for this memory based data, which truly confuses us. &lt;/P&gt;

&lt;P&gt;Maybe I miss something ; -) &lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 13:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446159#M172366</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-03-22T13:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446160#M172367</link>
      <description>&lt;P&gt;Whenever you run any search adhoc or schedule, it generates job directory for every single job in &lt;CODE&gt;$SPLUNK_HOME/var/run/splunk/dispatch&lt;/CODE&gt;  and that directory for each job contains few files, one of them is compressed results file. Now this directory occupies storage on search head but how much, it depends on your search query, if you are displaying raw data in your query output then it will occupy more space on disk OR if you are doing statistics on raw data then it will occupy less disk storage.&lt;/P&gt;

&lt;P&gt;So based on my understanding your confusion is that where this job data stores, in RAM (memory) or Disk ? Then answer is it is on disk. Now think about if ttl does not exist for any job then &lt;CODE&gt;$SPLUNK_HOME/var/run/splunk/dispatch&lt;/CODE&gt; directory will continuously grow on your search head and you need to add more storage at every few days. As you will not face disk space issue on longer term for dispatch directory, ttl comes into play. It will remove jobs directory and associated files from dispatch directory after TTL expires.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 18:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446160#M172367</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-22T18:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446161#M172368</link>
      <description>&lt;P&gt;Right, what I'm trying to say is that in many software applications the objects are being created in memory and when not needed, they are either being destroyed or the garbage collection process would take care of it. For me, pushing this storage to disk is a bit confusing as I haven't encountered something like that in my enterprise days and they are &lt;STRONG&gt;many&lt;/STRONG&gt; ; -)&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 21:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446161#M172368</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-03-23T21:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly does the ttl mechanism do?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446162#M172369</link>
      <description>&lt;P&gt;Yes I totally understand you but splunk does not store Job results in memory and it writes to disk &amp;amp; when there are too many jobs in dispatch directory it raise this error &lt;A href="https://answers.splunk.com/answers/558452/too-many-search-jobs-found-in-the-dispatch-directo-3.html"&gt;https://answers.splunk.com/answers/558452/too-many-search-jobs-found-in-the-dispatch-directo-3.html&lt;/A&gt; (I am not sure what is threshold in new version of Splunk)&lt;/P&gt;</description>
      <pubDate>Sat, 23 Mar 2019 22:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-exactly-does-the-ttl-mechanism-do/m-p/446162#M172369</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-23T22:18:05Z</dc:date>
    </item>
  </channel>
</rss>

