<?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 can I search a lookup table for rows that match an input string in any field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358625#M106010</link>
    <description>&lt;P&gt;That's what I'm looking for. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2018 20:34:47 GMT</pubDate>
    <dc:creator>matstap</dc:creator>
    <dc:date>2018-02-07T20:34:47Z</dc:date>
    <item>
      <title>How can I search a lookup table for rows that match an input string in any field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358620#M106005</link>
      <description>&lt;P&gt;I need to search a lookup table for rows that match an input string in any field.&lt;/P&gt;

&lt;P&gt;I've tried &lt;CODE&gt;|inputlookup...... | search $searchKey$&lt;/CODE&gt; but this returns no results.  &lt;/P&gt;

&lt;P&gt;How do I do this?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 19:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358620#M106005</guid>
      <dc:creator>matstap</dc:creator>
      <dc:date>2018-02-06T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search a lookup table for rows that match an input string in any field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358621#M106006</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;lookup name&amp;gt; WHERE &amp;lt;fieldname&amp;gt;=&amp;lt;value&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your &lt;CODE&gt;| search&lt;/CODE&gt; version would probably work if you did &lt;CODE&gt;| search &amp;lt;fieldname&amp;gt;=&amp;lt;value&amp;gt;&lt;/CODE&gt;, but it's better to include the filter in &lt;CODE&gt;inputlookup&lt;/CODE&gt; itself.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 19:28:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358621#M106006</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-06T19:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search a lookup table for rows that match an input string in any field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358622#M106007</link>
      <description>&lt;P&gt;I see I didn't really answer your question.  I will revisit this in a few.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 20:39:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358622#M106007</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-06T20:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search a lookup table for rows that match an input string in any field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358623#M106008</link>
      <description>&lt;P&gt;Is there a way to do this without specifying the field? I just want to pass in a string x and if in one row FieldA=&lt;EM&gt;x&lt;/EM&gt; and in another row FieldB=&lt;EM&gt;x&lt;/EM&gt;, it will return both rows&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 20:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358623#M106008</guid>
      <dc:creator>matstap</dc:creator>
      <dc:date>2018-02-06T20:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search a lookup table for rows that match an input string in any field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358624#M106009</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;lookup&amp;gt;
| foreach * [eval matched=if(matched="YES" OR &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;="searchkey", "YES", "NO")]
| search matched="YES"
| fields - matched
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Feb 2018 21:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358624#M106009</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-06T21:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search a lookup table for rows that match an input string in any field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358625#M106010</link>
      <description>&lt;P&gt;That's what I'm looking for. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 20:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-a-lookup-table-for-rows-that-match-an-input/m-p/358625#M106010</guid>
      <dc:creator>matstap</dc:creator>
      <dc:date>2018-02-07T20:34:47Z</dc:date>
    </item>
  </channel>
</rss>

