<?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: USE AND Operator in IF or CASE statement in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427203#M7617</link>
    <description>&lt;P&gt;@kumagaur ,&lt;BR /&gt;
Do you have multiple values of con1 in a single event ? If not AND condition will not work. Do you have some sample events ?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 04:48:33 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-01-25T04:48:33Z</dc:date>
    <item>
      <title>USE AND Operator in IF or CASE statement</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427202#M7616</link>
      <description>&lt;P&gt;I have one lookup in which there is a field which consist&lt;BR /&gt;
Team Member&lt;BR /&gt;
A1&lt;BR /&gt;
A2&lt;BR /&gt;
A3&lt;BR /&gt;
A4&lt;BR /&gt;
A5&lt;BR /&gt;
A6&lt;BR /&gt;
A7&lt;BR /&gt;
Now,If &lt;BR /&gt;
TeamMember=(A1 OR A2) AND A4 AND A7 then print Aseries&lt;BR /&gt;
TeamMember=(A1 OR A2) and A5 AND A6 then print Bseries&lt;/P&gt;

&lt;P&gt;I tried |eval Team=if((con1=="A1 OR con1=A2)"AND con1=="A4" AND con1=A7,Aseries,Other)&lt;/P&gt;

&lt;P&gt;I used case as well but no luck.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 16:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427202#M7616</guid>
      <dc:creator>kumagaur</dc:creator>
      <dc:date>2019-01-24T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: USE AND Operator in IF or CASE statement</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427203#M7617</link>
      <description>&lt;P&gt;@kumagaur ,&lt;BR /&gt;
Do you have multiple values of con1 in a single event ? If not AND condition will not work. Do you have some sample events ?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 04:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427203#M7617</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-01-25T04:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: USE AND Operator in IF or CASE statement</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427204#M7618</link>
      <description>&lt;P&gt;Try this: &lt;BR /&gt;
| eval Team= if((con1== "A1" OR con1=="A2") AND con1=="A4" AND con1="A7", Aseries, Other) &lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 06:44:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427204#M7618</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-01-25T06:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: USE AND Operator in IF or CASE statement</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427205#M7619</link>
      <description>&lt;P&gt;Maybe like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your Base Search Here
| appendpipe [|inputlookup TeamMember.csv | stats values(TeamMember) AS con1]
| eval Team=if(((con1=="A1" OR con1=="A2") AND con1=="A4" AND con1=="A7"), "Aseries", "Bseries")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 22:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/USE-AND-Operator-in-IF-or-CASE-statement/m-p/427205#M7619</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-25T22:37:49Z</dc:date>
    </item>
  </channel>
</rss>

