<?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: AND in If statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53326#M12972</link>
    <description>&lt;P&gt;Ah I have spotted my own mistake, a simple matter of missing quotation marks around LocalSupply and External - I've managed to make the country display as LocalSupply, I'm now running &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2013 11:12:22 GMT</pubDate>
    <dc:creator>rlautman</dc:creator>
    <dc:date>2013-09-03T11:12:22Z</dc:date>
    <item>
      <title>AND in If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53323#M12969</link>
      <description>&lt;P&gt;I have a set of logs showing order journeys between countries - I want to create a report that show the destination country of the order or, if the order is staying within the country of origin, will show this order as a local supply order. To assess whether the order is local supply I need to evaluate 2 fields, I have written if statements with an OR condition but I am not sure how to use an AND condition within the if statement - can anyone suggest how I would do this?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 10:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53323#M12969</guid>
      <dc:creator>rlautman</dc:creator>
      <dc:date>2013-09-03T10:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: AND in If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53324#M12970</link>
      <description>&lt;P&gt;Could you show examples? Without any other info I'd just say "just use AND instead of OR", but I'm guessing there's more to your question than that.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 10:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53324#M12970</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-09-03T10:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: AND in If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53325#M12971</link>
      <description>&lt;P&gt;This is the statement I've tried using, but the issue may not be with the AND:&lt;/P&gt;

&lt;P&gt;eval OrderType=if((OriginCountry="IRL") AND (DestinationCountry="IRL"),LocalSupply,External) | stats count by OrderType&lt;/P&gt;

&lt;P&gt;This query is currently showing no results.&lt;/P&gt;

&lt;P&gt;Ideally I would like to have a report where I can show all orders and their origin countries within a specific time frame, and if they are 'Local Supply' the origincountry will be renamed Local Supply and all other orders will be displayed with their origincountry, but I'll walk before I run!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 11:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53325#M12971</guid>
      <dc:creator>rlautman</dc:creator>
      <dc:date>2013-09-03T11:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: AND in If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53326#M12972</link>
      <description>&lt;P&gt;Ah I have spotted my own mistake, a simple matter of missing quotation marks around LocalSupply and External - I've managed to make the country display as LocalSupply, I'm now running &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 11:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53326#M12972</guid>
      <dc:creator>rlautman</dc:creator>
      <dc:date>2013-09-03T11:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: AND in If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53327#M12973</link>
      <description>&lt;P&gt;Are LocalSupply and External supposed to be field names or strings? Because right now you're referring to field names, so if those fields don't exist, you will get empty results.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 11:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AND-in-If-statement/m-p/53327#M12973</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-09-03T11:12:43Z</dc:date>
    </item>
  </channel>
</rss>

