<?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: Filtering queries by large lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63943#M15808</link>
    <description>&lt;P&gt;you could also try:&lt;/P&gt;

&lt;P&gt;[]
LOOKUP-baddomain = ..... OUTPUTNEW ...&lt;/P&gt;

&lt;P&gt;in your props.conf using the true and is_bad field. &lt;/P&gt;

&lt;P&gt;with associated entry in transforms.conf:&lt;/P&gt;

&lt;P&gt;[baddomain]
default_match = no_match
filename = lookup_baddomains.csv
max_matches = 1
min_matches = 1&lt;/P&gt;

&lt;P&gt;This way the search would be:&lt;/P&gt;

&lt;P&gt;index=myindex is_bad=true&lt;/P&gt;

&lt;P&gt;as the lookup will be appended automatically&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2011 00:12:26 GMT</pubDate>
    <dc:creator>fox</dc:creator>
    <dc:date>2011-03-22T00:12:26Z</dc:date>
    <item>
      <title>Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63939#M15804</link>
      <description>&lt;P&gt;I have a large lookup full of bad domains.  The lookup is simply a domain name per line.  I would like to search through a section of logs and return events where the bad domain exists.  My domain list looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;baddomain
baddomain1.com
baddomain2.com
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the query I'm attempting to write looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex | append [ inputlookup domains.csv | fields baddomain ] | where domain=baddomain | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run just the inputlookup portion of the query I'm seeing my results, but they do not seem to be getting appended.&lt;/P&gt;

&lt;P&gt;Thanks,
Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 21:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63939#M15804</guid>
      <dc:creator>kevintelford</dc:creator>
      <dc:date>2011-03-21T21:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63940#M15805</link>
      <description>&lt;P&gt;How about:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex [ inputlookup domains.csv | rename baddomain as domain | fields baddomain]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should be equivalent to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex (domain=badguy.com OR domain=donkey.com ...)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63940#M15805</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-03-21T22:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63941#M15806</link>
      <description>&lt;P&gt;I typically use "lookup" instead of inputlookup along with a boolean column:&lt;/P&gt;

&lt;PRE&gt;
## baddomains.csv

domain,is_bad
bad.domain.com,true
&lt;/PRE&gt;

&lt;P&gt;index=myindex | lookup domains.csv domain OUTPUT is_bad | search is_bad=true&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63941#M15806</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-03-21T22:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63942#M15807</link>
      <description>&lt;P&gt;Did I ever tell you you're my hero?&lt;BR /&gt;
You're everything, everything I wish I could be.&lt;/P&gt;

&lt;P&gt;Thanks dude, works swell!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2011 23:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63942#M15807</guid>
      <dc:creator>kevintelford</dc:creator>
      <dc:date>2011-03-21T23:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63943#M15808</link>
      <description>&lt;P&gt;you could also try:&lt;/P&gt;

&lt;P&gt;[]
LOOKUP-baddomain = ..... OUTPUTNEW ...&lt;/P&gt;

&lt;P&gt;in your props.conf using the true and is_bad field. &lt;/P&gt;

&lt;P&gt;with associated entry in transforms.conf:&lt;/P&gt;

&lt;P&gt;[baddomain]
default_match = no_match
filename = lookup_baddomains.csv
max_matches = 1
min_matches = 1&lt;/P&gt;

&lt;P&gt;This way the search would be:&lt;/P&gt;

&lt;P&gt;index=myindex is_bad=true&lt;/P&gt;

&lt;P&gt;as the lookup will be appended automatically&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 00:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63943#M15808</guid>
      <dc:creator>fox</dc:creator>
      <dc:date>2011-03-22T00:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63944#M15809</link>
      <description>&lt;P&gt;So I've become a liar.  2 issues.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;In a distributed setup, it will not work unless the lookup is on the search head.  Is there a way to tell it to look locally?&lt;/LI&gt;
&lt;LI&gt;When I did put this file on the search head I got the error "Error in 'UnifiedSearch': Unable to parse 'The specified file is too large..."&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 22 Mar 2011 00:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63944#M15809</guid>
      <dc:creator>kevintelford</dc:creator>
      <dc:date>2011-03-22T00:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63945#M15810</link>
      <description>&lt;P&gt;So we worked the issue. The confusion was in the distributed search aspect.&lt;/P&gt;

&lt;P&gt;We originally had the lookup file pushed out using the deployment server. So each indexer had the file in (app)/local/lookups. The search head did not have the lookup file.&lt;/P&gt;

&lt;P&gt;It appears (please correct if this is wrong) that when using inputlookup, the lookup file need &lt;STRONG&gt;only&lt;/STRONG&gt; be on the search head. &lt;/P&gt;

&lt;P&gt;We were confusing this with regular lookups, where 'local=t' can be specified.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2011 01:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63945#M15810</guid>
      <dc:creator>cfergus</dc:creator>
      <dc:date>2011-03-31T01:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering queries by large lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63946#M15811</link>
      <description>&lt;P&gt;GO TEAM NOVII!!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2011 01:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-queries-by-large-lookup/m-p/63946#M15811</guid>
      <dc:creator>kevintelford</dc:creator>
      <dc:date>2011-03-31T01:40:17Z</dc:date>
    </item>
  </channel>
</rss>

