<?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: Data models slow after restart - tstats in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347621#M102954</link>
    <description>&lt;P&gt;ok thanks&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 10:29:26 GMT</pubDate>
    <dc:creator>robertlynch2020</dc:creator>
    <dc:date>2019-02-01T10:29:26Z</dc:date>
    <item>
      <title>Data models slow after restart - tstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347616#M102949</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;Every Saturday we do a full stop of Splunk and we do a full back up + restart.&lt;BR /&gt;
The issues is come Monday morning it take up to 10 minutes to some of the heavy tstat commands to run. Its like as if all the data is in cold buckets and not warm, the data span is only 1-2 weeks only so it should be warm and fast, but its very very slow.&lt;/P&gt;

&lt;P&gt;I am thinking of running a saved search on the last months data after a restart to "wake it up" so to speak. Any other ideas would be great on this?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Below is the type of search that is taking a long time after the restart.&lt;/STRONG&gt; There could be 100 Million line it is pulling from, normall this can take 10 seconds, when in cache. The Value host=CLIENT_X can change.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats summariesonly=true max(All_TPS_Logs.duration) AS All_TPS_Logs.duration FROM datamodel=MLC_TPS_DEBUG4 WHERE (nodename=All_TPS_Logs host=CLIENT_X (All_TPS_Logs.user=* OR NOT All_TPS_Logs.user=*)) All_TPS_Logs.name =*** GROUPBY _time, All_TPS_Logs.fullyQualifiedMethod span=1s | rename All_TPS_Logs.fullyQualifiedMethod as series | rename All_TPS_Logs.duration as value | table _time series value | append [ search eventtype=mlc sourcetype=lts_timings host=TALANX-Logs-18-12-17-DIJON527_2017-12-18-100009_archive | where isnum(duration_seconds) | eval task_name = upper(task_name) | lookup lts_lookup task_name OUTPUT value | eval value = if(isnotnull(value),value,95) | rex field=start ".* (?&amp;lt;start_time&amp;gt;[^ ]+)$" | rex field=end ".* (?&amp;lt;end_time&amp;gt;[^ ]+)$" | eval series = task_name." (".duration_seconds."s)" | eval end_timestamp=_time+duration_seconds | eval end_event=mvappend("",end_timestamp.",".series.",".value,"") | mvexpand end_event | rex field=end_event "(?&amp;lt;_time&amp;gt;[^,]+),(?&amp;lt;series&amp;gt;[^,]+),(?&amp;lt;value&amp;gt;[^,]+)" | eval series = replace(series,":",".") | table _time series value | dedup _time, series ]| search (series=**murex** OR series=**TEST_**) | timechart bins=1000 max(value) by series limit=20
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Dec 2017 09:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347616#M102949</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-12-18T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data models slow after restart - tstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347617#M102950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;As you mentioned that “data should be in warm”, can you please let us know are you using different storage for warm and cold buckets? If so you need to check your indexes.conf configuration because when you stop/start Splunk, bucket will roll from hot to warm and if you are reaching max warm DB count then Splunk will roll old warm bucket to cold and when you are trying to search it tries to fetch data from colddb?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 02:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347617#M102950</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-19T02:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data models slow after restart - tstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347618#M102951</link>
      <description>&lt;P&gt;It could be exactly as you are describing.  When Splunk stops, all hot buckets are closed and rolled to warm.  If you have configurations that cause hot buckets to stay open a long time and also causes warm buckets to roll quickly to cold, what you describe is exactly what would result.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 19:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347618#M102951</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-21T19:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data models slow after restart - tstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347619#M102952</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I use the same storage for cold and warm SSD.&lt;/P&gt;

&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 12:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347619#M102952</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2019-01-22T12:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data models slow after restart - tstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347620#M102953</link>
      <description>&lt;P&gt;I'll suggest to compare Job Inspector for Job before backup and after backup, I suspect append search causing more time but best to start with Job Inspector.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 13:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347620#M102953</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-22T13:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data models slow after restart - tstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347621#M102954</link>
      <description>&lt;P&gt;ok thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347621#M102954</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2019-02-01T10:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data models slow after restart - tstats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347622#M102955</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I agree i think this is what is happening.&lt;BR /&gt;
However i taught warm and hot will be accessed at the same speed, this is the bit i am not really getting.&lt;/P&gt;

&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-models-slow-after-restart-tstats/m-p/347622#M102955</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2019-02-01T10:31:41Z</dc:date>
    </item>
  </channel>
</rss>

