<?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: Multiple OR not working as expected with AND clause in search query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653698#M225896</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I tried to combine two different eventtype events in one single event.&lt;BR /&gt;&lt;BR /&gt;Eventtype = First and Eventtype =Second&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;eventtype="First " OR eventtype="Second&amp;nbsp;"| transaction eventtype maxspan=1s | eval combined_event()=mvjoin(event, " ") | table combined_event&lt;BR /&gt;&lt;BR /&gt;But it group the events of First and Second it didnt added FIRST+Second into single eventtype is this possible?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 08:30:26 GMT</pubDate>
    <dc:creator>hgoyal</dc:creator>
    <dc:date>2023-08-09T08:30:26Z</dc:date>
    <item>
      <title>Why is multiple OR not working as expected with AND clause in search query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653556#M225847</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;I have a requirement to implement a search query where I have 3 unique values and one common value&lt;BR /&gt;&lt;BR /&gt;3 unique values-&amp;gt; A, B, C&lt;/P&gt;
&lt;P&gt;1 Common Value-&amp;gt; D&lt;BR /&gt;&lt;BR /&gt;I am doing something like (A and D) OR (B and D) OR (C and D)&amp;nbsp; but it is not giving any search result but it should give as&amp;nbsp; (C and D ) is true.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;if is&amp;nbsp; possible can you help?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 16:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653556#M225847</guid>
      <dc:creator>hgoyal</dc:creator>
      <dc:date>2023-08-08T16:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653559#M225848</link>
      <description>&lt;P&gt;What you have should work, although you could try (A or B or C) AND D.&lt;/P&gt;&lt;P&gt;Can you share some events which you think should be being picked up which aren't?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 10:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653559#M225848</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-08T10:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653570#M225853</link>
      <description>&lt;P&gt;no result? , make sure your AND and OR are uppercase.&lt;BR /&gt;also as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;said combining your ORs should work.&lt;/P&gt;&lt;P&gt;are these stored in 2 fields or just 1?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 12:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653570#M225853</guid>
      <dc:creator>wmuselle</dc:creator>
      <dc:date>2023-08-08T12:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653654#M225872</link>
      <description>&lt;P&gt;There is a single field on which these values are matched. Bucket Name&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 03:45:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653654#M225872</guid>
      <dc:creator>hgoyal</dc:creator>
      <dc:date>2023-08-09T03:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653662#M225878</link>
      <description>&lt;P&gt;In general, ANDs and ORs work as expected, which means there must be something specific about your scenario for it to not work. Without the specifics, e.g. actual (anonymised) examples, it is going to be difficult to help you further.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 05:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653662#M225878</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T05:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653672#M225885</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I think I know why it is not working. I was trying to make AND work on different events .&lt;BR /&gt;&lt;BR /&gt;For example one event has A value&lt;BR /&gt;And there is another event with B value&amp;nbsp;&lt;BR /&gt;And I am trying to apply multiple AND and OR between different events .&lt;BR /&gt;&lt;BR /&gt;Is there anyway to apply AND and OR between 2 different events and their values ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 06:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653672#M225885</guid>
      <dc:creator>hgoyal</dc:creator>
      <dc:date>2023-08-09T06:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653674#M225887</link>
      <description>&lt;P&gt;The simple answer is no - Splunk works on a pipeline of events, so each comparison applies to one event at a time. Having said that, there are ways to combine events into single events, to which comparisons can be applied, and also ways to combine values from other events, so that cross-event comparisons can be made. It depends on your usecase.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 06:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653674#M225887</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T06:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653698#M225896</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I tried to combine two different eventtype events in one single event.&lt;BR /&gt;&lt;BR /&gt;Eventtype = First and Eventtype =Second&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;eventtype="First " OR eventtype="Second&amp;nbsp;"| transaction eventtype maxspan=1s | eval combined_event()=mvjoin(event, " ") | table combined_event&lt;BR /&gt;&lt;BR /&gt;But it group the events of First and Second it didnt added FIRST+Second into single eventtype is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 08:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653698#M225896</guid>
      <dc:creator>hgoyal</dc:creator>
      <dc:date>2023-08-09T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653699#M225897</link>
      <description>&lt;P&gt;No, using transaction eventtype will separate groups of events by eventtype so First and Second will be in different event (groups). Perhaps, instead of talking in generic terms, with you introducing additional variables to your usecase, it might be useful if you describe your exact usecase in more detail. What exactly are you trying to do?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 08:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653699#M225897</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T08:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653701#M225899</link>
      <description>&lt;P&gt;Okay. I have one variable say bucket_name. It exists in eventtype -&amp;gt;First and eventtype-&amp;gt;Second&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So this is a common field in both the eventtype.&lt;BR /&gt;&lt;BR /&gt;But I want to combine these both events so that I have both the bucket names into single eventtype.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;And that's why I was trying to perform OR and AND operator. TO extract bucket name value .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My use case is I want to Search only the bucketnames which exists with some other specific bucket names using search keyword&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 08:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653701#M225899</guid>
      <dc:creator>hgoyal</dc:creator>
      <dc:date>2023-08-09T08:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple OR not working as expected with AND clause in search query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653706#M225903</link>
      <description>&lt;P&gt;This still isn't clear - do you have the same bucket_name in two different events, one of event type "First" and the other of event type "Second"; or, events of type "First" with different bucket_names and events of type "Second" with a different set of bucket_names?&lt;/P&gt;&lt;P&gt;Please share some sample (anonymised) events to make this clearer.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 09:21:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-multiple-OR-not-working-as-expected-with-AND-clause-in/m-p/653706#M225903</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T09:21:14Z</dc:date>
    </item>
  </channel>
</rss>

