<?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: eval alerting on matching fields. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eval-alerting-on-matching-fields/m-p/399394#M115810</link>
    <description>&lt;P&gt;the if statement will return 1 if the fields match else it will return 0&lt;/P&gt;

&lt;P&gt;| eval match=if(field1_foo==field2_foo,1,0)&lt;BR /&gt;
| where match=1&lt;/P&gt;

&lt;P&gt;If you want to set an alert - save the search where 'match=1' (to get events where the fields are same) as an alert where you can schedule it to run periodically or create a correlation search in Splunk ES to create a notable event.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:43:03 GMT</pubDate>
    <dc:creator>saurabhkharkar</dc:creator>
    <dc:date>2020-09-29T22:43:03Z</dc:date>
    <item>
      <title>eval alerting on matching fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-alerting-on-matching-fields/m-p/399393#M115809</link>
      <description>&lt;P&gt;i want to make an alert that will pop when two values in a event match.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo_index  sourcetype=foofoo_prod| eval match=if(field1_foo==Filed2_foo,1,0)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The issues I am not sure of what eval function to use. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-alerting-on-matching-fields/m-p/399393#M115809</guid>
      <dc:creator>sbattista09</dc:creator>
      <dc:date>2019-01-15T18:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: eval alerting on matching fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-alerting-on-matching-fields/m-p/399394#M115810</link>
      <description>&lt;P&gt;the if statement will return 1 if the fields match else it will return 0&lt;/P&gt;

&lt;P&gt;| eval match=if(field1_foo==field2_foo,1,0)&lt;BR /&gt;
| where match=1&lt;/P&gt;

&lt;P&gt;If you want to set an alert - save the search where 'match=1' (to get events where the fields are same) as an alert where you can schedule it to run periodically or create a correlation search in Splunk ES to create a notable event.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-alerting-on-matching-fields/m-p/399394#M115810</guid>
      <dc:creator>saurabhkharkar</dc:creator>
      <dc:date>2020-09-29T22:43:03Z</dc:date>
    </item>
  </channel>
</rss>

