<?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 detect change in regular pattern in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-change-in-regular-pattern/m-p/273622#M190206</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;We want to detect change in data pattern. Example I have server with Power consumption is 2 KW, if there is change is Power consumption may be like +5% or -5% how to detect automatically send alerts are or generate report.&lt;/P&gt;

&lt;P&gt;Is there any command or apps to detect change in data pattern.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2016 07:01:49 GMT</pubDate>
    <dc:creator>chanduira</dc:creator>
    <dc:date>2016-07-19T07:01:49Z</dc:date>
    <item>
      <title>How to detect change in regular pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-change-in-regular-pattern/m-p/273622#M190206</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;We want to detect change in data pattern. Example I have server with Power consumption is 2 KW, if there is change is Power consumption may be like +5% or -5% how to detect automatically send alerts are or generate report.&lt;/P&gt;

&lt;P&gt;Is there any command or apps to detect change in data pattern.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 07:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-change-in-regular-pattern/m-p/273622#M190206</guid>
      <dc:creator>chanduira</dc:creator>
      <dc:date>2016-07-19T07:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect change in regular pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-change-in-regular-pattern/m-p/273623#M190207</link>
      <description>&lt;P&gt;Have you tried the &lt;CODE&gt;anomalies&lt;/CODE&gt; command? It allows you to set a threshold value to indicate if an event, or field, is considered unexpected or anormal. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | anomalies threshold=0.05 field=powerconsumption 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Anomalies"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.2/SearchReference/Anomalies&lt;/A&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;In your alert you can specify a custom trigger condition. If you are using &lt;CODE&gt;anomalies&lt;/CODE&gt; then the added field &lt;CODE&gt;unexpectedness&lt;/CODE&gt; would present you the calculated "unexpectedness" and filtering out events inside the threshold, thus leaving you with only the unexpected events. You can then create a custom trigger condition that triggers an alarm if the fields value is above your threshold. The &lt;CODE&gt;anomalies&lt;/CODE&gt; command should filter out any event within your threshold so choosing to trigger whenever the search gets a hit is also an option.&lt;/P&gt;

&lt;P&gt;Here are some links to the Alerting Manual:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Alert/AlertTriggerConditions"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Alert/AlertTriggerConditions&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.2/Alert/Definescheduledalerts#Advanced_conditional_alert"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.2/Alert/Definescheduledalerts#Advanced_conditional_alert&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 08:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-change-in-regular-pattern/m-p/273623#M190207</guid>
      <dc:creator>tormodbp</dc:creator>
      <dc:date>2016-07-19T08:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect change in regular pattern</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-detect-change-in-regular-pattern/m-p/273624#M190208</link>
      <description>&lt;P&gt;You could also look at &lt;CODE&gt;autoregress&lt;/CODE&gt; command. Something like this might work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | reverse | autoregress powerconsumption  as prev_value | eval change=prev_value/powerconsumption | where change&amp;lt;0.05 OR change&amp;gt;0.05
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/SearchReference/Autoregress"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/SearchReference/Autoregress&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 11:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-detect-change-in-regular-pattern/m-p/273624#M190208</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-19T11:06:24Z</dc:date>
    </item>
  </channel>
</rss>

