<?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: prediction in splnuk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43900#M10371</link>
    <description>&lt;P&gt;Hey @laurie_gellatly,&lt;BR /&gt;
Can you please share your idea about how you extend predict to use wildcard or dynamic column name with predict function ?&lt;/P&gt;</description>
    <pubDate>Sun, 27 May 2018 06:06:45 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2018-05-27T06:06:45Z</dc:date>
    <item>
      <title>prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43885#M10356</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;

&lt;P&gt;i am splunk 5.0 and i tried the query below with predict function as given in the document&lt;/P&gt;

&lt;P&gt;source="hdfs://172.25.192.226:8020/user/cloudera/input/taskmanager_log20111210_09.19.49.txt"| transaction TaskAction startswith=START endswith=Succeeded| timechart count(duration) by TaskAction|predict count(duration) as Durationf&lt;/P&gt;

&lt;P&gt;but it throws me error as &lt;/P&gt;

&lt;P&gt;command="predict", Too few data points: 0. Need at least 2&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;

&lt;P&gt;poornima &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43885#M10356</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2020-09-28T12:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43886#M10357</link>
      <description>&lt;P&gt;Look at the table produced by your timechart. There's no column "count(duration)", hence predict complains about too few data points.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43886#M10357</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-23T10:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43887#M10358</link>
      <description>&lt;P&gt;I've said this in a few questions, but please please read the docs. With that error the first thing you should do is read the docs;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Predict"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Predict&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Nowhere does it say you can use stats commands, In this case you would rename you count and use;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| predict count as Durationf&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43887#M10358</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-11-23T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43888#M10359</link>
      <description>&lt;P&gt;i refered the document and then only i used this command...&lt;/P&gt;

&lt;P&gt;predict &lt;VARIABLE_TO_PREDICT&gt; [AS &lt;NEWFIELD_NAME&gt;]&lt;/NEWFIELD_NAME&gt;&lt;/VARIABLE_TO_PREDICT&gt;&lt;/P&gt;

&lt;P&gt;|predict count(duration) as DurationF&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:18:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43888#M10359</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-23T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43889#M10360</link>
      <description>&lt;P&gt;right, that isn't a predictable field, you'd need to do an AS rename to change it to something like count or dur_count to then run predict on&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43889#M10360</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-11-23T10:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43890#M10361</link>
      <description>&lt;P&gt;hi martin,&lt;/P&gt;

&lt;P&gt;i changed the query but this time i got the different error&lt;BR /&gt;
as u suggested,&lt;/P&gt;

&lt;P&gt;source="hdfs://172.25.192.226:8020/user/cloudera/input/taskmanager_log20111210_09.19.49.txt"| transaction TaskAction_1 startswith=START endswith=Succeeded|Table _time TaskAction_1 duration|predict duration AS dur_count&lt;/P&gt;

&lt;P&gt;it shows error as&lt;/P&gt;

&lt;P&gt;External search command 'predict' returned error code 1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43890#M10361</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2020-09-28T12:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43891#M10362</link>
      <description>&lt;P&gt;I suggested you look at the result of the timechart to see what columns there are. Only those columns are put into the predict, hence only those columns are available to be predicted.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43891#M10362</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-23T10:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43892#M10363</link>
      <description>&lt;P&gt;Renaming the count(duration) shouldn't help because it's split up with a by clause.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43892#M10363</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-23T10:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43893#M10364</link>
      <description>&lt;P&gt;Right, and it won't work because of the split by&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43893#M10364</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-11-23T10:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43894#M10365</link>
      <description>&lt;P&gt;Hi martin ,&lt;/P&gt;

&lt;P&gt;below is the table produced by the timechart&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/table.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;please verify&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 11:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43894#M10365</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-11-23T11:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43895#M10366</link>
      <description>&lt;P&gt;Yup, that's the table.&lt;/P&gt;

&lt;P&gt;...in case you wanted more than a verification of that being the table, look for the column you wanted to predict called "count(duration)" - it doesn't exist, hence cannot be predicted.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2012 11:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43895#M10366</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2012-11-23T11:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43896#M10367</link>
      <description>&lt;P&gt;how do i predict all fields in that table without specifying all of them? Is there something like | predict * ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 19:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43896#M10367</guid>
      <dc:creator>pachurrito62</dc:creator>
      <dc:date>2014-07-31T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43897#M10368</link>
      <description>&lt;P&gt;As noted in the docs linked by Drainy, &lt;CODE&gt;predict&lt;/CODE&gt; takes a field name - no wildcards.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 19:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43897#M10368</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-31T19:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43898#M10369</link>
      <description>&lt;P&gt;I've extended predict to allow it to take '*' as a wildcard&lt;BR /&gt;
Maybe you can too?&lt;/P&gt;

&lt;P&gt;...Laurie:{)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 02:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43898#M10369</guid>
      <dc:creator>laurie_gellatly</dc:creator>
      <dc:date>2016-12-08T02:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43899#M10370</link>
      <description>&lt;P&gt;Feel free to publish your extended predict as an app on splunkbase.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 14:43:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43899#M10370</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-12-10T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43900#M10371</link>
      <description>&lt;P&gt;Hey @laurie_gellatly,&lt;BR /&gt;
Can you please share your idea about how you extend predict to use wildcard or dynamic column name with predict function ?&lt;/P&gt;</description>
      <pubDate>Sun, 27 May 2018 06:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43900#M10371</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2018-05-27T06:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: prediction in splnuk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43901#M10372</link>
      <description>&lt;P&gt;Hi @VatsalJagani,&lt;BR /&gt;
I need to check I'm allowed to post the changes I made to predict.py&lt;BR /&gt;
That's why I haven't already done it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Cheers          ...Laurie:{)&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 22:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/prediction-in-splnuk/m-p/43901#M10372</guid>
      <dc:creator>laurie_gellatly</dc:creator>
      <dc:date>2018-05-30T22:26:44Z</dc:date>
    </item>
  </channel>
</rss>

