<?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 Use Lookup To Filter Events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136486#M37344</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;in my searches I want to filter my events when the field "Version" has specific values. The list of values I want to include in the searches will increase over time and would it be nice to have an ease way to handle this, instead of adjusting all searches everytime.&lt;/P&gt;

&lt;P&gt;Is it possible to use a lookuptable in the a search to achieve this? So that I will just have to adjust the lookuptable to define the filter for my needed "Versions".&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;/P&gt;

&lt;P&gt;Heinz&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2013 10:53:10 GMT</pubDate>
    <dc:creator>HeinzWaescher</dc:creator>
    <dc:date>2013-11-11T10:53:10Z</dc:date>
    <item>
      <title>Use Lookup To Filter Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136486#M37344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;in my searches I want to filter my events when the field "Version" has specific values. The list of values I want to include in the searches will increase over time and would it be nice to have an ease way to handle this, instead of adjusting all searches everytime.&lt;/P&gt;

&lt;P&gt;Is it possible to use a lookuptable in the a search to achieve this? So that I will just have to adjust the lookuptable to define the filter for my needed "Versions".&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;/P&gt;

&lt;P&gt;Heinz&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 10:53:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136486#M37344</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2013-11-11T10:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use Lookup To Filter Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136487#M37345</link>
      <description>&lt;P&gt;You could use the inputlookup command to do this.&lt;/P&gt;

&lt;P&gt;So you might have a lookup file called versions.csv&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Version
1.0
2.0
3.0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then you can use a search like :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search terms&amp;gt; [ | inputlookup &amp;lt;your lookup&amp;gt; ]

index=foo sourcetype=goo [ | inputlookup versions | fields Version ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Nov 2013 11:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136487#M37345</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-11-11T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use Lookup To Filter Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136488#M37346</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;thanks, that's a way I was looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Will this kind of command filter exact matches of the fieldvalue? Or will the output include a Version 1.0.1 as well, when your example above is used?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 11:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136488#M37346</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2013-11-11T11:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use Lookup To Filter Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136489#M37347</link>
      <description>&lt;P&gt;Exact matches. So your lookup file will need all the versions explictly entered.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 11:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136489#M37347</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-11-11T11:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use Lookup To Filter Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136490#M37348</link>
      <description>&lt;P&gt;Ok, that's nice. Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 11:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136490#M37348</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2013-11-11T11:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use Lookup To Filter Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136491#M37349</link>
      <description>&lt;P&gt;Hi  @Damien Dallimore [Splunk], &lt;/P&gt;

&lt;P&gt;I tried for similar outcome to search my query ; however no result is found. &lt;BR /&gt;
Note: In my .csv file there is only one column and it looks like below: &lt;BR /&gt;
Application&lt;BR /&gt;
abc*&lt;BR /&gt;
xyz*&lt;BR /&gt;
aaa* n so on. &lt;/P&gt;

&lt;P&gt;Query is &lt;BR /&gt;
index="index_name" [ | inputlookup "filename" | fields Application ] | table field1, field2&lt;/P&gt;

&lt;P&gt;Anything I am missing. Kindly help. &lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
Binay Agarwal &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 10:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-Lookup-To-Filter-Events/m-p/136491#M37349</guid>
      <dc:creator>bagarwal</dc:creator>
      <dc:date>2017-01-05T10:51:27Z</dc:date>
    </item>
  </channel>
</rss>

