<?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 to alert on comparison of two fields in a single search? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-alert-on-comparison-of-two-fields-in-a-single-search/m-p/272937#M5000</link>
    <description>&lt;P&gt;use the where class to find your matching records, something like this, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count, avg(concurrent_user) as user_count by date_minute, date_second |trendline sma10(user_count) as user_count_moving_average | where user_count_moving_average &amp;lt;=count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the saved search schedule it when more than one events presents. &lt;/P&gt;

&lt;P&gt;Hope this will helps you. &lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 18:43:29 GMT</pubDate>
    <dc:creator>vasanthmss</dc:creator>
    <dc:date>2017-02-01T18:43:29Z</dc:date>
    <item>
      <title>How to alert on comparison of two fields in a single search?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-alert-on-comparison-of-two-fields-in-a-single-search/m-p/272936#M4999</link>
      <description>&lt;P&gt;I am trying to monitor a log and alert when a certain value spikes higher than usual. &lt;BR /&gt;
trendline seems to be useful here.&lt;/P&gt;

&lt;P&gt;Something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count, avg(concurrent_user) as user_count by date_minute, date_second |trendline sma10(user_count) as user_count_moving_average
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can provide both single value in user_count and a moving average. &lt;/P&gt;

&lt;P&gt;How can I set up an alert that can compare the two values, so that if the single value is much greater than the moving average?&lt;BR /&gt;
I can calculate moving average of different periods and make the comparison as well. I get the search right, but the custom condition on alert setup is baffling me.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 17:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-alert-on-comparison-of-two-fields-in-a-single-search/m-p/272936#M4999</guid>
      <dc:creator>jaewankim</dc:creator>
      <dc:date>2017-02-01T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert on comparison of two fields in a single search?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-alert-on-comparison-of-two-fields-in-a-single-search/m-p/272937#M5000</link>
      <description>&lt;P&gt;use the where class to find your matching records, something like this, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats count, avg(concurrent_user) as user_count by date_minute, date_second |trendline sma10(user_count) as user_count_moving_average | where user_count_moving_average &amp;lt;=count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the saved search schedule it when more than one events presents. &lt;/P&gt;

&lt;P&gt;Hope this will helps you. &lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 18:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-alert-on-comparison-of-two-fields-in-a-single-search/m-p/272937#M5000</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2017-02-01T18:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert on comparison of two fields in a single search?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-alert-on-comparison-of-two-fields-in-a-single-search/m-p/272938#M5001</link>
      <description>&lt;P&gt;I know it's been a long time since you answered, but your answer helped me at least, well done!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 08:32:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-alert-on-comparison-of-two-fields-in-a-single-search/m-p/272938#M5001</guid>
      <dc:creator>adrien_dereumau</dc:creator>
      <dc:date>2019-12-13T08:32:42Z</dc:date>
    </item>
  </channel>
</rss>

