<?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: Basic OR statement question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129768#M35300</link>
    <description>&lt;P&gt;Yup, your search that works is pretty much the only way to list a string of ORs.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2013 22:23:32 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2013-11-05T22:23:32Z</dc:date>
    <item>
      <title>Basic OR statement question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129765#M35297</link>
      <description>&lt;P&gt;So I have this search and it works just fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dest="10.*" OR dest="172.16.*" OR dest="192.168.*" AND action=failure `authentication` | table time,user,src,dest,app,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My question is, is there a better/cleaner way to write this kind of OR statement?  For example, I tried the search below and it didn't work using the pipe/OR character:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dest="10.*"|"172.16.*"|"192.168.*" AND action=failure `authentication` | table time,user,src,dest,app,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also tried this and it didn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dest=(10.*|172.16.*|192.168.*) AND action=failure `authentication` | table time,user,src,dest,app,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Like I said, my search at the very top works but just wondering if it's the best way to do it.  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 22:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129765#M35297</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-11-05T22:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Basic OR statement question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129766#M35298</link>
      <description>&lt;P&gt;Nope, that's how you would do it. If you have a long static list of destinations you could consider putting it into a lookup and then just do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[|inputlookup destinations | fields dest] AND action=failure `authentication` | table time,user,src,dest,app,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But if this is just small lists for unique searches I'm guessing that's probably more hassle than it's worth.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 22:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129766#M35298</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-11-05T22:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Basic OR statement question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129767#M35299</link>
      <description>&lt;P&gt;Ok thanks for confirming my search!  I have it in a dashboard panel so you're right, I'll just stick with the original version using the individual OR statements.  Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 22:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129767#M35299</guid>
      <dc:creator>echojacques</dc:creator>
      <dc:date>2013-11-05T22:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Basic OR statement question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129768#M35300</link>
      <description>&lt;P&gt;Yup, your search that works is pretty much the only way to list a string of ORs.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 22:23:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-OR-statement-question/m-p/129768#M35300</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-05T22:23:32Z</dc:date>
    </item>
  </channel>
</rss>

