<?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 How to use the OR operator? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143977#M4410</link>
    <description>&lt;P&gt;Hi I want to get the OR result of field Emp Code in search.&lt;BR /&gt;I tried below conditions,but none of them worked.&lt;/P&gt;
&lt;P&gt;host=datahost where "Emp Code"=FCH OR "Emp Code"=ABC&lt;BR /&gt;host=datahost "Emp Code"=FCH OR "Emp Code"=ABC&lt;BR /&gt;host=datahost "Emp Code"=(FCH ABC)&lt;/P&gt;
&lt;P&gt;Can you help pls.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 19:33:15 GMT</pubDate>
    <dc:creator>SplunkBaby</dc:creator>
    <dc:date>2023-08-15T19:33:15Z</dc:date>
    <item>
      <title>How to use the OR operator?</title>
      <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143977#M4410</link>
      <description>&lt;P&gt;Hi I want to get the OR result of field Emp Code in search.&lt;BR /&gt;I tried below conditions,but none of them worked.&lt;/P&gt;
&lt;P&gt;host=datahost where "Emp Code"=FCH OR "Emp Code"=ABC&lt;BR /&gt;host=datahost "Emp Code"=FCH OR "Emp Code"=ABC&lt;BR /&gt;host=datahost "Emp Code"=(FCH ABC)&lt;/P&gt;
&lt;P&gt;Can you help pls.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 19:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143977#M4410</guid>
      <dc:creator>SplunkBaby</dc:creator>
      <dc:date>2023-08-15T19:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator</title>
      <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143978#M4411</link>
      <description>&lt;P&gt;In principle your second approach is correct... however, I'm a bit doubtful about the field name. Do your field extractions really yield a field named &lt;CODE&gt;Emp Code&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 17:39:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143978#M4411</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-10T17:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator</title>
      <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143979#M4412</link>
      <description>&lt;P&gt;The second one is close to reality.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host=myhost myfield=A OR myfield=B myotherfield=C&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;is equivalent to &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host=myhost AND ( myfield=A OR myfield=B ) AND myotherfield=C&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you are confused, add parenthesis.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 00:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143979#M4412</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-02-11T00:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator</title>
      <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143980#M4413</link>
      <description>&lt;P&gt;Typically, Splunk will replace the space in your field name with _, so "Emp Code" would be Emp_Code.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143980#M4413</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2020-09-28T15:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator</title>
      <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143981#M4414</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=datahost Emp_Code=FCH OR Emp_Code=ABC
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2014 00:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143981#M4414</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2014-02-11T00:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator</title>
      <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143982#M4415</link>
      <description>&lt;P&gt;Thanks this solves my issue&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 07:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143982#M4415</guid>
      <dc:creator>SplunkBaby</dc:creator>
      <dc:date>2014-02-11T07:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator</title>
      <link>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143983#M4416</link>
      <description>&lt;P&gt;Thanks this solves my issue&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 07:59:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-use-the-OR-operator/m-p/143983#M4416</guid>
      <dc:creator>SplunkBaby</dc:creator>
      <dc:date>2014-02-11T07:59:11Z</dc:date>
    </item>
  </channel>
</rss>

