<?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: predict does not span the full dataset in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/predict-does-not-span-the-full-dataset/m-p/166056#M47273</link>
    <description>&lt;P&gt;can you show a picter of what your expierncing? have you tried playing with earlies and latest in your search, this seemed to be importatnt to me what i was using the predict function.&lt;/P&gt;</description>
    <pubDate>Sun, 10 May 2015 22:26:21 GMT</pubDate>
    <dc:creator>HattrickNZ</dc:creator>
    <dc:date>2015-05-10T22:26:21Z</dc:date>
    <item>
      <title>predict does not span the full dataset</title>
      <link>https://community.splunk.com/t5/Splunk-Search/predict-does-not-span-the-full-dataset/m-p/166054#M47271</link>
      <description>&lt;P&gt;Hello all, &lt;/P&gt;

&lt;P&gt;Using Splunk 6.2.1 enterprise, with the wonderfull "predict" feature on my dataset. &lt;BR /&gt;
Can't seem to solve the issue below: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_time values  lower95(prediction(values)) prediction(values)  upper95(prediction(values))&lt;/STRONG&gt;&lt;BR /&gt;
... some data rows before ... &lt;BR /&gt;
&lt;STRONG&gt;2012-07-26    31  -15.013427956   21.8162478572   58.6459236703&lt;BR /&gt;
2012-08-02      -16.3596947095  21.4794702433   59.3186351962&lt;BR /&gt;
2012-08-09  14  -12.1226410825  26.6804984539   65.4836379903&lt;BR /&gt;
2012-08-16      -20.651592529   19.0738757323   58.7993439937&lt;BR /&gt;
2012-08-23      -19.7983081051  20.8112026898   61.4207134847&lt;BR /&gt;
2012-08-30      -22.2166494183  19.241558569    60.6997665564&lt;BR /&gt;
2012-09-06&lt;BR /&gt;&lt;BR /&gt;
2012-09-13&lt;BR /&gt;&lt;BR /&gt;
2012-09-20  46&lt;BR /&gt;&lt;BR /&gt;
2012-09-27  3&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
... some data rows after ... &lt;/P&gt;

&lt;P&gt;From this point on there is no more prediction. &lt;/P&gt;

&lt;P&gt;I've used the following search to get these results: &lt;/P&gt;

&lt;P&gt;...&lt;BR /&gt;
&lt;STRONG&gt;| eval nummer1 = if(getal1=="1" OR getal2=="1" OR getal3=="1" OR getal4=="1" OR getal5=="1" OR getal6=="1" OR getalReserve=="1", "1", "0")&lt;BR /&gt;
| search nummer1 !=0&lt;BR /&gt;
| eval tDT= strptime(trekkingDatum, "%F")&lt;BR /&gt;
| delta tDT as t_diff&lt;BR /&gt;
| eval t_diff =  floor(t_diff / 86400)&lt;BR /&gt;
| eval _time = strptime(trekkingDatum, "%F")&lt;BR /&gt;
| timechart span=7d values(t_diff) as values | predict values&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Hope someone can point me in the right direction. &lt;/P&gt;

&lt;P&gt;Thanks, &lt;BR /&gt;
Ken. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/predict-does-not-span-the-full-dataset/m-p/166054#M47271</guid>
      <dc:creator>kenvanderheyden</dc:creator>
      <dc:date>2020-09-28T18:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: predict does not span the full dataset</title>
      <link>https://community.splunk.com/t5/Splunk-Search/predict-does-not-span-the-full-dataset/m-p/166055#M47272</link>
      <description>&lt;P&gt;Got this working for some part: &lt;BR /&gt;
Using the future_timespan=150 it does now continue the prediction. &lt;/P&gt;

&lt;P&gt;However the issue has now changed towards a prediction "flat line". &lt;BR /&gt;
The prediction does not evolve / change after a certain point on the timeline. &lt;/P&gt;

&lt;P&gt;While I have a weighted average that does span the full set, and does change over the complete line, predict does not. &lt;/P&gt;

&lt;P&gt;Wonder what I might be missing here. &lt;/P&gt;

&lt;P&gt;The changed line in the original script: &lt;BR /&gt;
&lt;STRONG&gt;| timechart span=7d values(t_diff) as values | predict values algorithm=LL future_timespan=150 | trendline wma5(values)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Hope someone can share some wisdom in this ? &lt;/P&gt;

&lt;P&gt;Thanks and a happy new year to everyone !&lt;BR /&gt;&lt;BR /&gt;
Ken. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:31:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/predict-does-not-span-the-full-dataset/m-p/166055#M47272</guid>
      <dc:creator>kenvanderheyden</dc:creator>
      <dc:date>2020-09-28T18:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: predict does not span the full dataset</title>
      <link>https://community.splunk.com/t5/Splunk-Search/predict-does-not-span-the-full-dataset/m-p/166056#M47273</link>
      <description>&lt;P&gt;can you show a picter of what your expierncing? have you tried playing with earlies and latest in your search, this seemed to be importatnt to me what i was using the predict function.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2015 22:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/predict-does-not-span-the-full-dataset/m-p/166056#M47273</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2015-05-10T22:26:21Z</dc:date>
    </item>
  </channel>
</rss>

