<?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 do I create a time chart that predicts based on the values inside the search field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300736#M90542</link>
    <description>&lt;P&gt;Predict command can work on single time series data which means you can either aggregate all domain address together or pass on only one address at a time i.e &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart count as foo
| predict foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS : I would also remove &lt;STRONG&gt;| search&lt;/STRONG&gt; from the query so that src_ips to be excluded are removed from the base search itself.&lt;/P&gt;

&lt;P&gt;Do read about various algorithms for predict command like LLP LLT etc.&lt;/P&gt;

&lt;P&gt;If you want to predict categorical field then check out &lt;STRONG&gt;Machine Learning Toolkit&lt;/STRONG&gt; app on Splunkbase, which uses algorithms like LogisticRegression, SVM etc.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 20:35:57 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-05-18T20:35:57Z</dc:date>
    <item>
      <title>How do I create a time chart that predicts based on the values inside the search field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300733#M90539</link>
      <description>&lt;P&gt;I am trying to create a search that looks through some logs and creates a time chart based on the search field which is a domain address like 'global.ymtracking.com' in Splunk Enterprise 6.4.3. I have a search already started which is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=dns source="/var/log/named/rpz.log"   | search src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx/24 AND src_ip!=xxx.xxx.xxx.xxx/24 | timechart count by query
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=dns source="/var/log/named/rpz.log"   | search src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx/24 AND src_ip!=xxx.xxx.xxx.xxx/24 | timechart count by query as foo | predict foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then create an alert if one of the values goes above the predicted value on any given day. The error I get with the above is that you can't do &lt;CODE&gt;timechart count by query as foo&lt;/CODE&gt; you would have to do &lt;CODE&gt;timechart count(query) as foo&lt;/CODE&gt;, which is not exactly what I am looking for. I am not sure how this would be possible and any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 18:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300733#M90539</guid>
      <dc:creator>aflick2486</dc:creator>
      <dc:date>2017-05-18T18:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time chart that predicts based on the values inside the search field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300734#M90540</link>
      <description>&lt;P&gt;wouldn't this work:&lt;BR /&gt;
    | timechart count  as foo by query | predict foo&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Predict"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Predict&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 18:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300734#M90540</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-05-18T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time chart that predicts based on the values inside the search field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300735#M90541</link>
      <description>&lt;P&gt;When I go to the visualization tab, this gives me the error:&lt;/P&gt;

&lt;P&gt;command="predict", Unknown field: foo&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 18:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300735#M90541</guid>
      <dc:creator>aflick2486</dc:creator>
      <dc:date>2017-05-18T18:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time chart that predicts based on the values inside the search field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300736#M90542</link>
      <description>&lt;P&gt;Predict command can work on single time series data which means you can either aggregate all domain address together or pass on only one address at a time i.e &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart count as foo
| predict foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS : I would also remove &lt;STRONG&gt;| search&lt;/STRONG&gt; from the query so that src_ips to be excluded are removed from the base search itself.&lt;/P&gt;

&lt;P&gt;Do read about various algorithms for predict command like LLP LLT etc.&lt;/P&gt;

&lt;P&gt;If you want to predict categorical field then check out &lt;STRONG&gt;Machine Learning Toolkit&lt;/STRONG&gt; app on Splunkbase, which uses algorithms like LogisticRegression, SVM etc.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 20:35:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300736#M90542</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-18T20:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time chart that predicts based on the values inside the search field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300737#M90543</link>
      <description>&lt;P&gt;So that would pass in the first domain and then how would you pass in the others?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 20:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300737#M90543</guid>
      <dc:creator>aflick2486</dc:creator>
      <dc:date>2017-05-18T20:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time chart that predicts based on the values inside the search field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300738#M90544</link>
      <description>&lt;P&gt;Give this a try (may not perform best). The predict command is non-streaming command which can work on single,fixed name field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=dns source="/var/log/named/rpz.log"   src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx/24 AND src_ip!=xxx.xxx.xxx.xxx/24
| stats  count by query | table query 
|map search="search index=dns source=\"/var/log/named/rpz.log\"  src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx AND src_ip!=xxx.xxx.xxx.xxx/24 AND src_ip!=xxx.xxx.xxx.xxx/24  query=\"$query$\" | timechart count | predict count | rename count as \"$query$\"" | timechart values(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 21:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300738#M90544</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-18T21:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time chart that predicts based on the values inside the search field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300739#M90545</link>
      <description>&lt;P&gt;This is close to what I am looking for, however all of the predictions are equal to 0 and it seems to predict on all of the domains counted together. Is it possible to predict based on only one value inside the query field?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 15:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-chart-that-predicts-based-on-the-values/m-p/300739#M90545</guid>
      <dc:creator>aflick2486</dc:creator>
      <dc:date>2017-05-19T15:55:41Z</dc:date>
    </item>
  </channel>
</rss>

