<?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: How can I display just the prediction (future) in a chart ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-just-the-prediction-future-in-a-chart/m-p/403324#M116708</link>
    <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;many questions in one so lets start:&lt;BR /&gt;
1. try this search anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | gentimes start="01/01/2018:00:00:00" end="12/31/2018:23:59:59" increment=10m
    | eval _time = starttime 
    | eval random_value = random()%10000
    | timechart span=1h min(random_value) as value
    | predict value algorithm=LLP5 period=2
    | search _time &amp;gt; 1546300799
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;maybe narrow down the time as it can get heavy. you can see in the viz tab that only events after 12/31/2018&lt;BR /&gt;
also play a Lillie with the integers for &lt;CODE&gt;span=&lt;/CODE&gt; and &lt;CODE&gt;period=&lt;/CODE&gt;&lt;BR /&gt;
2. predicting to the future depends on how far back you are looking and on the &lt;CODE&gt;period&lt;/CODE&gt; and &lt;CODE&gt;future_timespan&lt;/CODE&gt; attributes&lt;BR /&gt;
read here more: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Predict"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Predict&lt;/A&gt;&lt;BR /&gt;
3. the &lt;CODE&gt;where&lt;/CODE&gt; worked fine for me, see screenshot, try and substitute the &lt;CODE&gt;search&lt;/CODE&gt; in the last line of code to &lt;CODE&gt;where&lt;/CODE&gt;&lt;BR /&gt;
4. i don't understand the requirement here, maybe open another question or elaborate?&lt;/P&gt;

&lt;P&gt;screenshot&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6591i3F6E2840D824C6EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 02:54:33 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-02-21T02:54:33Z</dc:date>
    <item>
      <title>How can I display just the prediction (future) in a chart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-just-the-prediction-future-in-a-chart/m-p/403323#M116707</link>
      <description>&lt;P&gt;I'm doing a chart where i want to predict the disk space for the month after and I have this :&lt;BR /&gt;
.... predict  C as "Prediction of C"  algorithm=LLP5  &lt;/P&gt;

&lt;P&gt;(i put a span of 1m of the timechart)&lt;/P&gt;

&lt;P&gt;1) I don't know how to do display just the future and not the past of the prediction (_time &amp;lt;= now())&lt;BR /&gt;
2) And how to predict 1 month later ?&lt;BR /&gt;
3) don't work with where &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;BR /&gt;
4) If I pick in the time picker an anterior date, i want that my chart don't take the 'predict' in count and just display the chart without prediction&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-just-the-prediction-future-in-a-chart/m-p/403323#M116707</guid>
      <dc:creator>henriq_c</dc:creator>
      <dc:date>2019-02-20T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I display just the prediction (future) in a chart ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-just-the-prediction-future-in-a-chart/m-p/403324#M116708</link>
      <description>&lt;P&gt;hello there,&lt;/P&gt;

&lt;P&gt;many questions in one so lets start:&lt;BR /&gt;
1. try this search anywhere:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | gentimes start="01/01/2018:00:00:00" end="12/31/2018:23:59:59" increment=10m
    | eval _time = starttime 
    | eval random_value = random()%10000
    | timechart span=1h min(random_value) as value
    | predict value algorithm=LLP5 period=2
    | search _time &amp;gt; 1546300799
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;maybe narrow down the time as it can get heavy. you can see in the viz tab that only events after 12/31/2018&lt;BR /&gt;
also play a Lillie with the integers for &lt;CODE&gt;span=&lt;/CODE&gt; and &lt;CODE&gt;period=&lt;/CODE&gt;&lt;BR /&gt;
2. predicting to the future depends on how far back you are looking and on the &lt;CODE&gt;period&lt;/CODE&gt; and &lt;CODE&gt;future_timespan&lt;/CODE&gt; attributes&lt;BR /&gt;
read here more: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Predict"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Predict&lt;/A&gt;&lt;BR /&gt;
3. the &lt;CODE&gt;where&lt;/CODE&gt; worked fine for me, see screenshot, try and substitute the &lt;CODE&gt;search&lt;/CODE&gt; in the last line of code to &lt;CODE&gt;where&lt;/CODE&gt;&lt;BR /&gt;
4. i don't understand the requirement here, maybe open another question or elaborate?&lt;/P&gt;

&lt;P&gt;screenshot&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6591i3F6E2840D824C6EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 02:54:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-just-the-prediction-future-in-a-chart/m-p/403324#M116708</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-02-21T02:54:33Z</dc:date>
    </item>
  </channel>
</rss>

