<?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 do I search multiple source types based on a lookup file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-search-multiple-source-types-based-on-a-lookup-file/m-p/452532#M78407</link>
    <description>&lt;P&gt;Hi @tusharsaran1 ,&lt;/P&gt;

&lt;P&gt;Try this ... &lt;/P&gt;

&lt;P&gt;in the search part of the query add this subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ |inputlookup lookup
|fields sourcetype
| format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the field of the lookup is sourcetype and the values are correctly you will have something like this&lt;BR /&gt;
( ( sourcetype="a" ) OR ( sourcetype="b" ) OR... etc&lt;/P&gt;

&lt;P&gt;Here de docs of format &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Format"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Format&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 15:23:35 GMT</pubDate>
    <dc:creator>osakachan</dc:creator>
    <dc:date>2018-10-25T15:23:35Z</dc:date>
    <item>
      <title>How do I search multiple source types based on a lookup file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-search-multiple-source-types-based-on-a-lookup-file/m-p/452531#M78406</link>
      <description>&lt;P&gt;Is there a way to search events from multiple source types when the list of source types is available in a lookup file?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 14:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-search-multiple-source-types-based-on-a-lookup-file/m-p/452531#M78406</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2018-10-25T14:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search multiple source types based on a lookup file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-search-multiple-source-types-based-on-a-lookup-file/m-p/452532#M78407</link>
      <description>&lt;P&gt;Hi @tusharsaran1 ,&lt;/P&gt;

&lt;P&gt;Try this ... &lt;/P&gt;

&lt;P&gt;in the search part of the query add this subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ |inputlookup lookup
|fields sourcetype
| format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the field of the lookup is sourcetype and the values are correctly you will have something like this&lt;BR /&gt;
( ( sourcetype="a" ) OR ( sourcetype="b" ) OR... etc&lt;/P&gt;

&lt;P&gt;Here de docs of format &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Format"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Format&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-search-multiple-source-types-based-on-a-lookup-file/m-p/452532#M78407</guid>
      <dc:creator>osakachan</dc:creator>
      <dc:date>2018-10-25T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search multiple source types based on a lookup file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-search-multiple-source-types-based-on-a-lookup-file/m-p/452533#M78408</link>
      <description>&lt;P&gt;HI !&lt;/P&gt;

&lt;P&gt;To complete a bit @elpred0 answer, if you are not used to play with sub search, this is a more complete example of what your search should look like.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourIndex [|inputlookup sourcetype.csv | fields sourcetype]
| your search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should return all the events in &lt;CODE&gt;yourIndex&lt;/CODE&gt; with the specified sourcetype in &lt;CODE&gt;sourcetype.csv&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;KailA&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 20:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-search-multiple-source-types-based-on-a-lookup-file/m-p/452533#M78408</guid>
      <dc:creator>KailA</dc:creator>
      <dc:date>2018-10-25T20:25:46Z</dc:date>
    </item>
  </channel>
</rss>

