<?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: Separate multiple splunk values with an OR clause? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618262#M214874</link>
    <description>&lt;P&gt;Your best bet for this scenarios is to use "IN" which allows you to search for a comma delimited list of values.&lt;/P&gt;&lt;P&gt;For this to work, the input needs to be comma delimited, does not support "OR".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;E.g. your input: 102.99.99, 103.99.93, 203.23.21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Change this: 
index=abc sourcetype=abc src_ip="$ip$"

To this: 
index=abc sourcetype=abc src_ip IN ($ip$)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 16:05:29 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2022-10-25T16:05:29Z</dc:date>
    <item>
      <title>Separate multiple splunk values with an OR clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618256#M214871</link>
      <description>&lt;DIV class=""&gt;
&lt;P&gt;I have a text box in a splunk dashboard and I'm trying to find out how I can separate values entered into the text box that are separated by commas with a OR clause. for example:&lt;/P&gt;
&lt;P&gt;values entered into text box: 102.99.99, 103.99.93, 203.23.21&lt;/P&gt;
&lt;P&gt;Where this search (index=abc sourcetype=abc src_ip="$ip$") would translate to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;index=abc sourcetype=abc src_ip="102.99.99 OR 103.99.93 OR 203.23.21"&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Oct 2022 15:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618256#M214871</guid>
      <dc:creator>MM0071</dc:creator>
      <dc:date>2022-10-25T15:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Separate multiple splunk values with an OR clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618260#M214872</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250650"&gt;@MM0071&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with replace command (&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Replace" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Replace&lt;/A&gt;)?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| replace "," WITH " OR" IN &amp;lt;your_field&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 15:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618260#M214872</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-25T15:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Separate multiple splunk values with an OR clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618261#M214873</link>
      <description>&lt;P&gt;I have not. I'm very green with Splunk. How would the syntax for this work?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 15:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618261#M214873</guid>
      <dc:creator>MM0071</dc:creator>
      <dc:date>2022-10-25T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Separate multiple splunk values with an OR clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618262#M214874</link>
      <description>&lt;P&gt;Your best bet for this scenarios is to use "IN" which allows you to search for a comma delimited list of values.&lt;/P&gt;&lt;P&gt;For this to work, the input needs to be comma delimited, does not support "OR".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;E.g. your input: 102.99.99, 103.99.93, 203.23.21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Change this: 
index=abc sourcetype=abc src_ip="$ip$"

To this: 
index=abc sourcetype=abc src_ip IN ($ip$)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 16:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618262#M214874</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-25T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Separate multiple splunk values with an OR clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618263#M214875</link>
      <description>&lt;P&gt;This was perfect. Thank you. Not sure why I didn't think about this.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 16:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-multiple-splunk-values-with-an-OR-clause/m-p/618263#M214875</guid>
      <dc:creator>MM0071</dc:creator>
      <dc:date>2022-10-25T16:16:59Z</dc:date>
    </item>
  </channel>
</rss>

