<?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: is there a logical OR available for searching? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/is-there-a-logical-OR-available-for-searching/m-p/149583#M41850</link>
    <description>&lt;P&gt;Concerning the &lt;CODE&gt;NOT sourcetype=blah&lt;/CODE&gt; key combination, that used to be Alt+Click in the Splunk&amp;lt;=5 &lt;CODE&gt;flashtimeline&lt;/CODE&gt; view, but for me that stopped working in the Splunk 6 &lt;CODE&gt;search&lt;/CODE&gt; view. It's probably going to be fixed in the next major version as per &lt;A href="http://answers.splunk.com/answers/109473/alt-click-not-working-selected-fields"&gt;http://answers.splunk.com/answers/109473/alt-click-not-working-selected-fields&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2014 16:40:19 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-05-02T16:40:19Z</dc:date>
    <item>
      <title>is there a logical OR available for searching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-there-a-logical-OR-available-for-searching/m-p/149581#M41848</link>
      <description>&lt;P&gt;This has to be splunk 101. &lt;/P&gt;

&lt;P&gt;There has be something better than &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NOT sourcetype=top NOT sourcetype=ps NOT sourcetype=openPorts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Something along the lines of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NOT sourcetype in (top, ps, openPorts)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;???&lt;/P&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;

&lt;P&gt;Oh .. and one more question,  there's a shortcut to insert "NOT sourcetype=blah" by holding down a key combination and mouse clicking on the "blah" in the current search results. What is the key combination on both windows and mac?  Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 22:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-there-a-logical-OR-available-for-searching/m-p/149581#M41848</guid>
      <dc:creator>di2esysadmin</dc:creator>
      <dc:date>2014-05-01T22:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: is there a logical OR available for searching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-there-a-logical-OR-available-for-searching/m-p/149582#M41849</link>
      <description>&lt;P&gt;Hi di2esysadmin,&lt;/P&gt;

&lt;P&gt;well, your example is not an &lt;CODE&gt;OR&lt;/CODE&gt; search, it is an &lt;CODE&gt;AND&lt;/CODE&gt; search. The AND directive is implied between terms, so you do not need to write it - this means&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`foo AND bar`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is the same like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`foo bar`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Back to your question: to search for multiple &lt;CODE&gt;OR&lt;/CODE&gt; statements you can do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`NOT ( sourcetype="top" OR sourcetype="ps" OR sourcetype="openPorts" )`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please see the docs on &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Search/Writebettersearches" target="_blank"&gt;writing better searches&lt;/A&gt;, where you can see that one should avoid &lt;CODE&gt;NOT&lt;/CODE&gt; searches but instead search for event you want. &lt;CODE&gt;NOT&lt;/CODE&gt; searches will have negative performance impact on long time searches.&lt;/P&gt;

&lt;P&gt;Regarding the keyboards shortcuts, find information in the docs about &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.3/Installation/Accessibilityoptions#Keyboard_navigation_using_Firefox_and_Mac_OS_X" target="_blank"&gt;Keyboard_navigation_using_Firefox_and_Mac_OS_X&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-there-a-logical-OR-available-for-searching/m-p/149582#M41849</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-09-28T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: is there a logical OR available for searching?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-there-a-logical-OR-available-for-searching/m-p/149583#M41850</link>
      <description>&lt;P&gt;Concerning the &lt;CODE&gt;NOT sourcetype=blah&lt;/CODE&gt; key combination, that used to be Alt+Click in the Splunk&amp;lt;=5 &lt;CODE&gt;flashtimeline&lt;/CODE&gt; view, but for me that stopped working in the Splunk 6 &lt;CODE&gt;search&lt;/CODE&gt; view. It's probably going to be fixed in the next major version as per &lt;A href="http://answers.splunk.com/answers/109473/alt-click-not-working-selected-fields"&gt;http://answers.splunk.com/answers/109473/alt-click-not-working-selected-fields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2014 16:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-there-a-logical-OR-available-for-searching/m-p/149583#M41850</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-05-02T16:40:19Z</dc:date>
    </item>
  </channel>
</rss>

