<?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: how to search multiple strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431405#M173314</link>
    <description>&lt;P&gt;Here file name is the field in the event&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jan 2019 01:23:15 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-01-30T01:23:15Z</dc:date>
    <item>
      <title>how to search multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431401#M173310</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have a list of 200 filenames (string) that need to be searched in Splunk. Each filename is unique.&lt;/P&gt;

&lt;P&gt;example - if I have filenames like 1.txt, 2.txt, 3.txt ........ 200.txt&lt;/P&gt;

&lt;P&gt;I am trying it like below - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(1548225008333.4546.-1092053882.Oxalis_jhsediapp02.netsentral.no.doc.xml OR 1126864-1548236892-8712_ehfd.jcloud.no.doc.xml)  |
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431401#M173310</guid>
      <dc:creator>arunkumardhiman</dc:creator>
      <dc:date>2019-01-29T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to search multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431402#M173311</link>
      <description>&lt;P&gt;You can create a  lookup with all the 20 filenames and the use a sub-search - see examples in &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Search/Aboutsubsearches"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Search/Aboutsubsearches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, within your data, if you have a field that has the filename, pls extract it, as it will come handy when you use sub-search.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431402#M173311</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-01-29T15:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to search multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431403#M173312</link>
      <description>&lt;P&gt;Hi @arunkumardhiman&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval filename="1.txt" 
| where in(filename,"1.txt","2,txt","3.txt")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jan 2019 16:01:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431403#M173312</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-29T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to search multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431404#M173313</link>
      <description>&lt;P&gt;I think I did confuse you.&lt;BR /&gt;
I have a raw data in Splunk into which I have to first find all the events containing those filenames and then to extract the values from those events only.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 19:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431404#M173313</guid>
      <dc:creator>arunkumardhiman</dc:creator>
      <dc:date>2019-01-29T19:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to search multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431405#M173314</link>
      <description>&lt;P&gt;Here file name is the field in the event&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 01:23:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-search-multiple-strings/m-p/431405#M173314</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-30T01:23:15Z</dc:date>
    </item>
  </channel>
</rss>

