<?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 exclude multiple specific source-alerts from search results? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444353#M7795</link>
    <description>&lt;P&gt;Thanks it should include an OR .&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 10:57:11 GMT</pubDate>
    <dc:creator>HenryFitzerald</dc:creator>
    <dc:date>2019-02-05T10:57:11Z</dc:date>
    <item>
      <title>How do I exclude multiple specific source-alerts from search results?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444348#M7790</link>
      <description>&lt;P&gt;I have four alerts and wanted to exclude these specific  FOUR(ALERT1,ALERT2,ALERT3,ALERT4) from the alert trigger search.&lt;/P&gt;

&lt;P&gt;I was expecting this query to work using NOT, but it does not work and ALERT1 &amp;amp; 2 currently appears.  Could anyone please assist?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;index=universal_alerts_   
         NOT  ( source =ALERT1               AND
                      source =ALERT2              AND         
                      source =ALERT3              AND
                      source =ALERT4              AND
                     )
        | timechart count by source
&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This query seems a valid alternative?? But, I am not sure why ????&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;  
             index=universal_alerts_   
                    ( source! =ALERT1              AND
                      source! =ALERT2              AND         
                      source! =ALERT3              AND
                      source! =ALERT4              AND
                     )
                 |  timechart count by source
&amp;lt;/query&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 14:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444348#M7790</guid>
      <dc:creator>HenryFitzerald</dc:creator>
      <dc:date>2019-02-04T14:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude multiple specific source-alerts from search results?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444349#M7791</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127716"&gt;@HenryFitzerald&lt;/a&gt; , &lt;/P&gt;

&lt;P&gt;try something like this:&lt;BR /&gt;
    index=universal_alerts_ NOT&lt;BR /&gt;
    [| makeresults | eval source= "ALERT1;ALERT2;ALERT3;ALERT4;" |  eval source=split(source,";") |  mvexpand source | fields - _time] |   timechart count by source&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444349#M7791</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2020-09-29T23:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude multiple specific source-alerts from search results?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444350#M7792</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;  
              index=universal_alerts_   
                   NOT  source IN("ALERT1", "ALERT2","ALERT3","ALERT4")

                  |  timechart count by source
 &amp;lt;/query&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 14:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444350#M7792</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-04T14:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude multiple specific source-alerts from search results?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444351#M7793</link>
      <description>&lt;P&gt;@HenryFitzerald ,&lt;/P&gt;

&lt;P&gt;You can try this also.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;query&amp;gt;
    index=universal_alerts_ 
    NOT (source="ALERT1" OR source="ALERT2" OR source="ALERT3" OR source="ALERT4") 
| timechart count by source
 &amp;lt;query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 15:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444351#M7793</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-02-04T15:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude multiple specific source-alerts from search results?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444352#M7794</link>
      <description>&lt;P&gt;You are using &lt;CODE&gt;AND&lt;/CODE&gt; and should be using &lt;CODE&gt;OR&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=universal_alerts_ AND NOT (source ="ALERT1" OR source ="ALERT2" OR source ="ALERT3" OR source ="ALERT4)
| timechart count by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 21:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444352#M7794</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-04T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude multiple specific source-alerts from search results?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444353#M7795</link>
      <description>&lt;P&gt;Thanks it should include an OR .&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 10:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-exclude-multiple-specific-source-alerts-from-search/m-p/444353#M7795</guid>
      <dc:creator>HenryFitzerald</dc:creator>
      <dc:date>2019-02-05T10:57:11Z</dc:date>
    </item>
  </channel>
</rss>

