<?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: consolidate the alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392321#M11773</link>
    <description>&lt;P&gt;i am getting these error&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: Typechecking failed. 'OR' only takes boolean arguments.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 12:37:59 GMT</pubDate>
    <dc:creator>logloganathan</dc:creator>
    <dc:date>2019-02-21T12:37:59Z</dc:date>
    <item>
      <title>consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392314#M11766</link>
      <description>&lt;P&gt;index=xyz host=a12fr* sourcetype = alert "A failed" OR "A success"&lt;BR /&gt;
| head 1 &lt;BR /&gt;
 | eval my_time=_time, current=Now() &lt;BR /&gt;
 | eval diff=current-my_time &lt;BR /&gt;
 | where diff&amp;gt;=100 AND like(_raw, "%failed%")&lt;/P&gt;

&lt;P&gt;index=xyz host=a12fr* sourcetype = alert "B failed" OR "B success"&lt;BR /&gt;
| head 1 &lt;BR /&gt;
 | eval my_time=_time, current=Now() &lt;BR /&gt;
 | eval diff=current-my_time &lt;BR /&gt;
 | where diff&amp;gt;=100 AND like(_raw, "%failed%")&lt;/P&gt;

&lt;P&gt;index=xyz host=a13fr* sourcetype = alert "B failed" OR "B success"&lt;BR /&gt;
| head 1 &lt;BR /&gt;
 | eval my_time=_time, current=Now() &lt;BR /&gt;
 | eval diff=current-my_time &lt;BR /&gt;
 | where diff&amp;gt;=100 AND like(_raw, "%failed%")&lt;/P&gt;

&lt;P&gt;index=xyz host=a13fr* sourcetype = alert "A failed" OR "A success"&lt;BR /&gt;
| head 1 &lt;BR /&gt;
 | eval my_time=_time, current=Now() &lt;BR /&gt;
 | eval diff=current-my_time &lt;BR /&gt;
 | where diff&amp;gt;=100 AND like(_raw, "%failed%")&lt;/P&gt;

&lt;P&gt;how to consolidate these alert to single alert?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392314#M11766</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2020-09-29T23:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392315#M11767</link>
      <description>&lt;P&gt;Is success/failed is captured in any field name?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392315#M11767</guid>
      <dc:creator>gowtham495</dc:creator>
      <dc:date>2019-02-20T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392316#M11768</link>
      <description>&lt;P&gt;no its not field name&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392316#M11768</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2019-02-20T13:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392317#M11769</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz (host=a12fr* OR host=a13fr*) AND sourcetype = alert AND (("A failed" OR "A success") OR ("B failed" OR "B success"))
| eval which = case(searchmatch("\"A failed\" OR \"A success\""), "A", searchmatch("\"B failed\" OR \"B success\""), "B", true(), "ERROR")
| dedup host which
| eval diff=_time - now()
| where diff&amp;gt;=100 AND like(_raw, "%failed%")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392317#M11769</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-20T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392318#M11770</link>
      <description>&lt;P&gt;Perhaps I'm missing something, but have you tried the obvious?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz (host=a12fr* OR host=a13fr*) sourcetype = alert (("A failed" OR "A success") OR ("B failed" OR "B success"))
| eval my_time=_time, current=Now() 
| eval diff=current-my_time 
| where diff&amp;gt;=100 AND like(_raw, "%failed%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It can be refined further to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz (host=a12fr* OR host=a13fr*) sourcetype = alert ("A failed" OR "B failed") latest=-100s
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392318#M11770</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-02-20T13:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392319#M11771</link>
      <description>&lt;P&gt;You could do couple of things?&lt;BR /&gt;
- assuming your raw event is similar, create a field to extract status - success /failed&lt;BR /&gt;
- create eventtypes for each pattern . &lt;CODE&gt;"A failed" OR "A success"&lt;/CODE&gt;   , "B failed" OR "B success" etc..&lt;BR /&gt;
- and possibly a macro  to define hosts, say  'host A OR hostB OR host C etc.. to make search simpler&lt;BR /&gt;
- then index=xyz (eventtype=A OR eventtype=B)  | head .... your search...&lt;BR /&gt;
- where possible avoid like(_raw, "%failed%") and bring that to your base search (before first pipe).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 13:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392319#M11771</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-20T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392320#M11772</link>
      <description>&lt;P&gt;if get both failure and success then i not want to display&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 10:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392320#M11772</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2019-02-21T10:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392321#M11773</link>
      <description>&lt;P&gt;i am getting these error&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: Typechecking failed. 'OR' only takes boolean arguments.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 12:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392321#M11773</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2019-02-21T12:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392322#M11774</link>
      <description>&lt;P&gt;Then @woodcock has your answer.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:11:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392322#M11774</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-02-21T13:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392323#M11775</link>
      <description>&lt;P&gt;I edited my answer and fixed that error.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 13:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392323#M11775</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-21T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392324#M11776</link>
      <description>&lt;P&gt;actually the requirement&lt;BR /&gt;
if i get failure event then success event within 5 minutes..it should not be noted&lt;BR /&gt;
if i get only failure event and no success event for last 5 minutes..it should be noted&lt;BR /&gt;
if i get only success..it should not be noted&lt;BR /&gt;
Could you please help me...&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 14:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392324#M11776</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2019-02-22T14:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392325#M11777</link>
      <description>&lt;P&gt;@woodcock Could you please help&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 10:30:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392325#M11777</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2019-02-25T10:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392326#M11778</link>
      <description>&lt;P&gt;I think you are looking for success or failure, probably evenstats and streamstats could help. From line 3 in woodcock's response, try to change to eventstats and keep 5mins window and you can then do eventstats values(which) by host.&lt;/P&gt;

&lt;P&gt;Pls look at &lt;A href="https://www.splunk.com/blog/2014/04/01/search-command-stats-eventstats-and-streamstats-2.html"&gt;https://www.splunk.com/blog/2014/04/01/search-command-stats-eventstats-and-streamstats-2.html&lt;/A&gt; and change as per your need.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 11:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392326#M11778</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-25T11:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392327#M11779</link>
      <description>&lt;P&gt;I can help but let's move this to another new question and close out this one.  Call me out in the new question and I will take a look at it.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392327#M11779</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-25T16:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: consolidate the alert</title>
      <link>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392328#M11780</link>
      <description>&lt;P&gt;Sure woodcock &lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/consolidate-the-alert/m-p/392328#M11780</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2019-02-25T16:39:07Z</dc:date>
    </item>
  </channel>
</rss>

