<?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: Grouping multiple OR values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470313#M132332</link>
    <description>&lt;P&gt;@babakkhorshid,&lt;/P&gt;

&lt;P&gt;Try,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field_name IN(x,y,z,a,b,c)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reference : &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Search#Multiple_field-value_comparisons_with_the_IN_operator"&gt;Multiple field-value comparisons with the IN operator&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2019 13:42:34 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-09-02T13:42:34Z</dc:date>
    <item>
      <title>Grouping multiple OR values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470312#M132331</link>
      <description>&lt;P&gt;Hi People,&lt;BR /&gt;
Is there any efficient way of grouping values? &lt;BR /&gt;
I have like 20 Or statement that I need to match&lt;BR /&gt;
something like &lt;BR /&gt;
("x" OR "Y" OR "Z" OR "A" OR "B" OR "C")&lt;/P&gt;

&lt;P&gt;Is there any expression like &lt;BR /&gt;
any of (x,y,z,a,b,c) ?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 12:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470312#M132331</guid>
      <dc:creator>babakkhorshid</dc:creator>
      <dc:date>2019-09-02T12:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple OR values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470313#M132332</link>
      <description>&lt;P&gt;@babakkhorshid,&lt;/P&gt;

&lt;P&gt;Try,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field_name IN(x,y,z,a,b,c)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reference : &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Search#Multiple_field-value_comparisons_with_the_IN_operator"&gt;Multiple field-value comparisons with the IN operator&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 13:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470313#M132332</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-09-02T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple OR values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470314#M132333</link>
      <description>&lt;P&gt;Thanks Renjith&lt;/P&gt;

&lt;P&gt;I think this would solve my issue.&lt;/P&gt;

&lt;P&gt;But out of interest: &lt;BR /&gt;
What if the field_Name is not the same. &lt;/P&gt;

&lt;P&gt;Like we have Multiple events (like Phrases or words we need to match) in multiple fields? &lt;/P&gt;

&lt;P&gt;example: "200" "201" "202" "203" "204" in fields A, B and C &lt;/P&gt;

&lt;P&gt;Much appreciate your help and Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 00:18:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470314#M132333</guid>
      <dc:creator>babakkhorshid</dc:creator>
      <dc:date>2019-09-03T00:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping multiple OR values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470315#M132334</link>
      <description>&lt;P&gt;@babakkhorshid ,&lt;BR /&gt;
Thanks. Please accept as answer if it's working for you.&lt;/P&gt;

&lt;P&gt;For handling different field name, you may use field alias and use the alias in search as described in &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Knowledge/Addaliasestofields"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Knowledge/Addaliasestofields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 13:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-multiple-OR-values/m-p/470315#M132334</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-09-03T13:10:35Z</dc:date>
    </item>
  </channel>
</rss>

