<?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: Custom Trigger Condition for alert if not specific destination IP in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356982#M105604</link>
    <description>&lt;P&gt;Hey @jrosecbt, if @DalJeanis solved your problem, please don't forget to accept an answer! You can upvote posts as well. (Karma points will be awarded for either action.) Happy Splunking!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 21:50:22 GMT</pubDate>
    <dc:creator>lfedak_splunk</dc:creator>
    <dc:date>2017-09-26T21:50:22Z</dc:date>
    <item>
      <title>Custom Trigger Condition for alert if not specific destination IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356980#M105602</link>
      <description>&lt;P&gt;I am attempting to create a custom trigger condition for the alert below that will only trigger if the dest_ip does not equal a specific IP.  &lt;/P&gt;

&lt;P&gt;Currently attempting the trigger alert when custom with:  search NOT dest_ip=xxx.xxx.xxx.xxx &lt;BR /&gt;
and have also tried: search dest_ip!=xxx.xxx.xxx.xxx &lt;BR /&gt;
and I am still seeing email alerts being sent for alerts in which the destination ip is the one that should be omitted.  &lt;/P&gt;

&lt;P&gt;index=someindex [search index=someindex retro_disposition=3 OR disposition=3 latest=now earliest=-3m | fields sha256] | eval  time=strftime(event_sec,"%m/%d/%y %H:%M:%S") | table  _time time src_ip src_port dest_ip dest_port file_type file_name file_size retro_disposition disposition sha256  sensor uri | sort sha256 -_time&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated,&lt;BR /&gt;
Jimmy&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356980#M105602</guid>
      <dc:creator>jrosecbt</dc:creator>
      <dc:date>2020-09-29T15:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Trigger Condition for alert if not specific destination IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356981#M105603</link>
      <description>&lt;P&gt;When debugging issues like this, one thing you have to check for is multivalue fields.  If there are two dest_ip values, then one of them will always NOT match any given value.  Also, be sure to put quotes around literals when appropriate.&lt;/P&gt;

&lt;P&gt;So, start with finding an exact moment that you have an event that sets off your alert, then run this to see which tests work for you.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; earliest=something latest=something
 | eval test1=if(match(dest_ip,"1\.2\.3\.4"),"yes","no")
 | eval test2=if(like(dest_ip,"1.2.3.4"),"yes","no")
 | eval test3=if(dest_ip="1.2.3.4","yes","no")
 | eval test4=if(dest_ip!="1.2.3.4","yes","no")
 | table _time dest_ip test*   
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Sep 2017 17:29:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356981#M105603</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-25T17:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Trigger Condition for alert if not specific destination IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356982#M105604</link>
      <description>&lt;P&gt;Hey @jrosecbt, if @DalJeanis solved your problem, please don't forget to accept an answer! You can upvote posts as well. (Karma points will be awarded for either action.) Happy Splunking!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 21:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356982#M105604</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-09-26T21:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Trigger Condition for alert if not specific destination IP</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356983#M105605</link>
      <description>&lt;P&gt;I have run the suggestion above and we do see at times multiple entries for dest_ip.  I am having trouble understanding the syntax for the custom trigger condition and am having trouble finding much documentation on its use.  Are you aware of any documentation that explains the trigger condition more than a few greater than or less than count examples.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;BR /&gt;
Jimmy&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 13:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Trigger-Condition-for-alert-if-not-specific-destination/m-p/356983#M105605</guid>
      <dc:creator>jrosecbt</dc:creator>
      <dc:date>2017-09-27T13:39:40Z</dc:date>
    </item>
  </channel>
</rss>

