<?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 Command - Alert when value breaches upper95 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398622#M115619</link>
    <description>&lt;P&gt;The problem with predict, is that you can't use wildcard. Not very efficient way to this &lt;A href="https://answers.splunk.com/answers/661506/predict-with-wildcard.html"&gt;https://answers.splunk.com/answers/661506/predict-with-wildcard.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 09:08:22 GMT</pubDate>
    <dc:creator>dauren_akilbeko</dc:creator>
    <dc:date>2018-08-10T09:08:22Z</dc:date>
    <item>
      <title>Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398618#M115615</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I'm trying to write a search that looks at creating an alert where there is a significant spike in HTTP POST requests.&lt;/P&gt;

&lt;P&gt;I am interested in using the predict command and alerting where the total &lt;CODE&gt;count(http_request)&lt;/CODE&gt; (where &lt;CODE&gt;http_request=POST)&lt;/CODE&gt; requests by &lt;CODE&gt;source_ip&lt;/CODE&gt; breaches the predicted &lt;CODE&gt;upper95&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;In theory, it would look something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_proxy 
| search http_request=POST 
| stats count(http_request) AS POST_Count by source_ip 
| predict POST_Count by source_ip 
| where POST_Count &amp;gt;= upper95
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any assistance, or pointers, would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 07:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398618#M115615</guid>
      <dc:creator>MikeElliott</dc:creator>
      <dc:date>2018-08-10T07:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398619#M115616</link>
      <description>&lt;P&gt;When attempting to run the above search, I get the error message &lt;CODE&gt;External search command 'predict' returned error code 1.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 07:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398619#M115616</guid>
      <dc:creator>MikeElliott</dc:creator>
      <dc:date>2018-08-10T07:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398620#M115617</link>
      <description>&lt;P&gt;The predict command must be preceded by the timechart command. The predict command requires time series data.&lt;/P&gt;

&lt;P&gt;For more info: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Predict"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Predict&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 07:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398620#M115617</guid>
      <dc:creator>dauren_akilbeko</dc:creator>
      <dc:date>2018-08-10T07:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398621#M115618</link>
      <description>&lt;P&gt;Damn - I was really hoping that this wouldn't be the case...  &lt;/P&gt;

&lt;P&gt;Okay, so we can use timechart I suppose - Any suggestions on how to get the timechart to display &lt;CODE&gt;count(http_request) as POST_Count by source_ip&lt;/CODE&gt;, or am I asking a bit much?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 07:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398621#M115618</guid>
      <dc:creator>MikeElliott</dc:creator>
      <dc:date>2018-08-10T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398622#M115619</link>
      <description>&lt;P&gt;The problem with predict, is that you can't use wildcard. Not very efficient way to this &lt;A href="https://answers.splunk.com/answers/661506/predict-with-wildcard.html"&gt;https://answers.splunk.com/answers/661506/predict-with-wildcard.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398622#M115619</guid>
      <dc:creator>dauren_akilbeko</dc:creator>
      <dc:date>2018-08-10T09:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398623#M115620</link>
      <description>&lt;P&gt;Apologies for the delay in responding.  I was able to resolve the issue with the below logic.  The index has been swapped out for a generic term, ofc &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="webproxy" requestmethod=POST earliest=-65m@m latest=-5m@m 
| timechart span=1m count as POST_Requests 
| predict POST_Requests as Predicted_Requests 
| rename upper95(Predicted_Results) as Ceiling 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Nov 2018 02:42:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398623#M115620</guid>
      <dc:creator>MikeElliott</dc:creator>
      <dc:date>2018-11-14T02:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398624#M115621</link>
      <description>&lt;P&gt;This is some really cool logic that can be adapted to detect all sorts of spikes - Recently we have deployed this for spikes in DNS traffic.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 02:42:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398624#M115621</guid>
      <dc:creator>MikeElliott</dc:creator>
      <dc:date>2018-11-14T02:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Predict Command - Alert when value breaches upper95</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398625#M115622</link>
      <description>&lt;P&gt;Hi dauren,&lt;/P&gt;

&lt;P&gt;Apologies for the delay in getting back.  I have posted the logic I ended up going with below - Since you were definitely instrumental in getting there, if you wanna post the logic, I'd be happy to mark as an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 02:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Predict-Command-Alert-when-value-breaches-upper95/m-p/398625#M115622</guid>
      <dc:creator>MikeElliott</dc:creator>
      <dc:date>2018-11-14T02:43:57Z</dc:date>
    </item>
  </channel>
</rss>

