<?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 Using a lookup to filter sourcetype in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-filter-sourcetype/m-p/609803#M212058</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a lookup instance_list, which I'm trying to use to filter my flow logs to only show the logs with the sourcetype as one of the instances I'm interested in, so:&lt;/P&gt;&lt;P&gt;index="sample_data" [|inputlookup instance_list | search instancename="*dc*" | lookup eni_list instanceid OUTPUT eni as sourcetype | format] | ......&lt;/P&gt;&lt;P&gt;There are 3-6 instances that match the search="*dc*" - running the inputlookup section on its own produces the correct list. &amp;nbsp;Unfortunately I get no results, and applying the instance names to each log then filtering results in a really slow search.&lt;/P&gt;&lt;P&gt;Any pointers are really welcome!&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 10:27:47 GMT</pubDate>
    <dc:creator>Mattjj</dc:creator>
    <dc:date>2022-08-17T10:27:47Z</dc:date>
    <item>
      <title>Using a lookup to filter sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-filter-sourcetype/m-p/609803#M212058</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a lookup instance_list, which I'm trying to use to filter my flow logs to only show the logs with the sourcetype as one of the instances I'm interested in, so:&lt;/P&gt;&lt;P&gt;index="sample_data" [|inputlookup instance_list | search instancename="*dc*" | lookup eni_list instanceid OUTPUT eni as sourcetype | format] | ......&lt;/P&gt;&lt;P&gt;There are 3-6 instances that match the search="*dc*" - running the inputlookup section on its own produces the correct list. &amp;nbsp;Unfortunately I get no results, and applying the instance names to each log then filtering results in a really slow search.&lt;/P&gt;&lt;P&gt;Any pointers are really welcome!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 10:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-filter-sourcetype/m-p/609803#M212058</guid>
      <dc:creator>Mattjj</dc:creator>
      <dc:date>2022-08-17T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using a lookup to filter sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-filter-sourcetype/m-p/609804#M212059</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="sample_data" [|inputlookup instance_list | search instancename="*dc*" | lookup eni_list instanceid OUTPUT eni as sourcetype | fields sourcetype ] | ......&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Aug 2022 10:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-filter-sourcetype/m-p/609804#M212059</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-17T10:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using a lookup to filter sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-filter-sourcetype/m-p/609806#M212061</link>
      <description>&lt;P&gt;Works perfectly, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 11:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-a-lookup-to-filter-sourcetype/m-p/609806#M212061</guid>
      <dc:creator>Mattjj</dc:creator>
      <dc:date>2022-08-17T11:27:44Z</dc:date>
    </item>
  </channel>
</rss>

