<?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 EVALstatement not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/EVALstatement-not-working/m-p/317827#M95099</link>
    <description>&lt;P&gt;My eval statement below is to check if 'Action is Required' only if the below conditions are met, I have also used case and if statement to determine this, however none of these have worked.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Location does not equal Varonis  (i.e equals Not in Varonis)&lt;/LI&gt;
&lt;LI&gt;MonitoringStatus does not equal Monitored  (i.e equals Not Monitored)&lt;/LI&gt;
&lt;LI&gt;Contains the word "Hosting" in the Path field&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;| eval VaronisStatus=if(('(g)Location'!="Varonis" AND(MonitoringStatus!="Monitored") AND like(Path,"%Hosting%")),"Action Required", "No Action Required") &lt;/P&gt;

&lt;P&gt;|| eval VaronisStatus=case(('(g)Location'!="Varonis" AND(MonitoringStatus!="Monitored") AND like(Path,"%Hosting%")),"Action Required"  , 1=1,"No Action Required") &lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 13:06:51 GMT</pubDate>
    <dc:creator>davidcraven02</dc:creator>
    <dc:date>2018-01-17T13:06:51Z</dc:date>
    <item>
      <title>EVALstatement not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/EVALstatement-not-working/m-p/317827#M95099</link>
      <description>&lt;P&gt;My eval statement below is to check if 'Action is Required' only if the below conditions are met, I have also used case and if statement to determine this, however none of these have worked.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Location does not equal Varonis  (i.e equals Not in Varonis)&lt;/LI&gt;
&lt;LI&gt;MonitoringStatus does not equal Monitored  (i.e equals Not Monitored)&lt;/LI&gt;
&lt;LI&gt;Contains the word "Hosting" in the Path field&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;| eval VaronisStatus=if(('(g)Location'!="Varonis" AND(MonitoringStatus!="Monitored") AND like(Path,"%Hosting%")),"Action Required", "No Action Required") &lt;/P&gt;

&lt;P&gt;|| eval VaronisStatus=case(('(g)Location'!="Varonis" AND(MonitoringStatus!="Monitored") AND like(Path,"%Hosting%")),"Action Required"  , 1=1,"No Action Required") &lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/EVALstatement-not-working/m-p/317827#M95099</guid>
      <dc:creator>davidcraven02</dc:creator>
      <dc:date>2018-01-17T13:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: EVALstatement not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/EVALstatement-not-working/m-p/317828#M95100</link>
      <description>&lt;P&gt;Hi @davidcraven02,&lt;BR /&gt;
I have checked below and it works fine&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;base search&amp;gt;| eval VaronisStatus=if('(g)Location'!="Varonis" AND MonitoringStatus!="Monitored" AND like(Path,"%Hosting%"),"Action Required", "No Action Required")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could you please tell me situation where its not working as expected..&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 17:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/EVALstatement-not-working/m-p/317828#M95100</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-17T17:30:41Z</dc:date>
    </item>
  </channel>
</rss>

