<?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: Build filter from inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550968#M156332</link>
    <description>&lt;P&gt;Yes, thank you (and i) made it work.&lt;/P&gt;&lt;P&gt;For some reason i had to make a change. This was the outcome:&lt;/P&gt;&lt;P&gt;| inputlookup filterlines | eval errmsg="*".filter."*" | format&lt;BR /&gt;( ( errmsg="*running out of wine*" AND filter="running out of wine" ) OR ( errmsg="*out of cola*" AND filter="out of cola" ) )&lt;/P&gt;&lt;P&gt;I changed it to:&lt;BR /&gt;| inputlookup filterlines | rename filter as errmsg | eval errmsg="*".errmsg."*" | format&lt;/P&gt;</description>
    <pubDate>Sat, 08 May 2021 15:12:51 GMT</pubDate>
    <dc:creator>hvdtol</dc:creator>
    <dc:date>2021-05-08T15:12:51Z</dc:date>
    <item>
      <title>Build filter from inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550947#M156326</link>
      <description>&lt;P&gt;I would kindly need some help for a query i am not able to create.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have&amp;nbsp; inputlookups as source.&lt;BR /&gt;And i want to filter with rows from another inputlookup&lt;/P&gt;&lt;P&gt;Simplified:&lt;/P&gt;&lt;P&gt;| inputlookup errmess_dev.csv&lt;BR /&gt;| append [| inputlookup errmess_prod.csv]&lt;BR /&gt;| table env,msg&lt;/P&gt;&lt;P&gt;DEV&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; we are running out of cola too much sugar&lt;BR /&gt;PROD&amp;nbsp; &amp;nbsp; &amp;nbsp; we are running out of wine better take juice&lt;BR /&gt;PROD&amp;nbsp; &amp;nbsp; &amp;nbsp; we are running out of beer not so good&lt;/P&gt;&lt;P&gt;I have another inputlookup which should be used as a filter.&lt;BR /&gt;| inputlookup filterlines&lt;BR /&gt;| table filter&lt;BR /&gt;&amp;nbsp; running out of wine&lt;BR /&gt;&amp;nbsp; out of cola&lt;/P&gt;&lt;P&gt;I want to establish this: build the search filter from the inputlookup.&lt;BR /&gt;How can i do this? Or is there perhaps a better way?&lt;/P&gt;&lt;P&gt;| inputlookup errmess_dev.csv&lt;BR /&gt;| append [| inputlookup errmess_prod.csv]&lt;BR /&gt;| table env,msg&lt;BR /&gt;| search NOT (errmsg="*out of beer*" OR errmsg="*out of wine*")&lt;BR /&gt;| table, errmsg&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Harry&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 11:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550947#M156326</guid>
      <dc:creator>hvdtol</dc:creator>
      <dc:date>2021-05-08T11:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Build filter from inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550949#M156327</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224757"&gt;@hvdtol&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try something like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup errmess_dev.csv
| append [| inputlookup errmess_prod.csv]
| table env,msg
| search NOT [| inputlookup filterlines | eval filter="*".filter."*" | format]
| table, errmsg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Kamlesh Vaghela&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 11:49:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550949#M156327</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-05-08T11:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Build filter from inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550968#M156332</link>
      <description>&lt;P&gt;Yes, thank you (and i) made it work.&lt;/P&gt;&lt;P&gt;For some reason i had to make a change. This was the outcome:&lt;/P&gt;&lt;P&gt;| inputlookup filterlines | eval errmsg="*".filter."*" | format&lt;BR /&gt;( ( errmsg="*running out of wine*" AND filter="running out of wine" ) OR ( errmsg="*out of cola*" AND filter="out of cola" ) )&lt;/P&gt;&lt;P&gt;I changed it to:&lt;BR /&gt;| inputlookup filterlines | rename filter as errmsg | eval errmsg="*".errmsg."*" | format&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 15:12:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550968#M156332</guid>
      <dc:creator>hvdtol</dc:creator>
      <dc:date>2021-05-08T15:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Build filter from inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550973#M156335</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224757"&gt;@hvdtol&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 16:28:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550973#M156335</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-05-08T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Build filter from inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550986#M156338</link>
      <description>&lt;P&gt;Thank you, this was helpfull&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 08:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Build-filter-from-inputlookup/m-p/550986#M156338</guid>
      <dc:creator>hvdtol</dc:creator>
      <dc:date>2021-05-09T08:30:59Z</dc:date>
    </item>
  </channel>
</rss>

