<?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 How to write a search to get a predicted value based on a date and a number of data points? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236085#M70114</link>
    <description>&lt;P&gt;I have looked at the &lt;CODE&gt;predict&lt;/CODE&gt; cause and the "x11", however, I'm still struggling to find the right searcg to get the data I want.&lt;/P&gt;

&lt;P&gt;Say I have 2 columns&lt;BR /&gt;
Report_Date Population &lt;BR /&gt;
11/01/2015 122&lt;BR /&gt;
22/02/2015 125&lt;BR /&gt;
09/04/2015 141&lt;BR /&gt;
14/05/2015 155&lt;/P&gt;

&lt;P&gt;I would like to use the &lt;CODE&gt;predict&lt;/CODE&gt; command to get the population at X date (say 01/01/2016). What should my search be? &lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2016 06:46:07 GMT</pubDate>
    <dc:creator>peterkn</dc:creator>
    <dc:date>2016-01-19T06:46:07Z</dc:date>
    <item>
      <title>How to write a search to get a predicted value based on a date and a number of data points?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236085#M70114</link>
      <description>&lt;P&gt;I have looked at the &lt;CODE&gt;predict&lt;/CODE&gt; cause and the "x11", however, I'm still struggling to find the right searcg to get the data I want.&lt;/P&gt;

&lt;P&gt;Say I have 2 columns&lt;BR /&gt;
Report_Date Population &lt;BR /&gt;
11/01/2015 122&lt;BR /&gt;
22/02/2015 125&lt;BR /&gt;
09/04/2015 141&lt;BR /&gt;
14/05/2015 155&lt;/P&gt;

&lt;P&gt;I would like to use the &lt;CODE&gt;predict&lt;/CODE&gt; command to get the population at X date (say 01/01/2016). What should my search be? &lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 06:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236085#M70114</guid>
      <dc:creator>peterkn</dc:creator>
      <dc:date>2016-01-19T06:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to get a predicted value based on a date and a number of data points?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236086#M70115</link>
      <description>&lt;P&gt;Basically, you just use &lt;CODE&gt;| predict Population&lt;/CODE&gt; for that. Keep in mind that in order to use the command, you need a &lt;CODE&gt;_time&lt;/CODE&gt; field, so you will have to either change your search before that to use that field, or create it from &lt;CODE&gt;Report_Date&lt;/CODE&gt; with strptime.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:42:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236086#M70115</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2016-01-19T11:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to get a predicted value based on a date and a number of data points?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236087#M70116</link>
      <description>&lt;P&gt;On the same issue, I did use your approach and it works, so thanks. &lt;/P&gt;

&lt;P&gt;How do I use Predict for more than 1 column. &lt;/P&gt;

&lt;P&gt;Say I have another column called "Number of jobs available" or "Unemployment Rate", how do I predict these columns as well? Do I have to manually write the predict clause for each of the column? As I have about 10 columns I need to use the Predict function for.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 03:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236087#M70116</guid>
      <dc:creator>peterkn</dc:creator>
      <dc:date>2016-01-20T03:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to get a predicted value based on a date and a number of data points?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236088#M70117</link>
      <description>&lt;P&gt;Unfortunately, you'll have to write your search like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | predict field_1 | predict field_2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;because you can't use predict inside of &lt;CODE&gt;foreach&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 09:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-get-a-predicted-value-based-on-a-date/m-p/236088#M70117</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2016-01-20T09:47:18Z</dc:date>
    </item>
  </channel>
</rss>

