<?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 do I return values that match column in Lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344754#M102133</link>
    <description>&lt;P&gt;This worked perfectly!!!  Thank you. &lt;/P&gt;

&lt;P&gt;[| inputlookup lookupfile | table user | dedup user]&lt;BR /&gt;
  | ... rest of the search&lt;BR /&gt;
 | lookup lookupfile user OUTPUT "Full Name" "Dept #" ..all other fields&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 17:10:08 GMT</pubDate>
    <dc:creator>jaxjohnny2000</dc:creator>
    <dc:date>2019-08-02T17:10:08Z</dc:date>
    <item>
      <title>How do I return values that match column in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344749#M102128</link>
      <description>&lt;P&gt;I have an index that contains a field called user. I have a lookup file that also contains the header user, in addition to various other columns headers with other values.&lt;/P&gt;

&lt;P&gt;How do I write a search that only returns the users that are listed in the Lookup file? I've tried the following, but I'm still seeing every user returned when I do a stats or something similiar&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup lookupfile user as user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344749#M102128</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2017-12-13T16:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return values that match column in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344750#M102129</link>
      <description>&lt;P&gt;At first glance it seems like you're wanting to filter your results using lookupfile. By default the lookup command adds additional fields to your results. In order to filter you're probably going to want to use inputlookup in a subsearch. &lt;/P&gt;

&lt;P&gt;Basic example:&lt;/P&gt;

&lt;P&gt;index=abc sourcetype=abcdef [search | inputlookup lookupfile | fields user]...&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344750#M102129</guid>
      <dc:creator>snowmizer</dc:creator>
      <dc:date>2017-12-13T16:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return values that match column in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344751#M102130</link>
      <description>&lt;P&gt;The &lt;CODE&gt;| lookup&lt;/CODE&gt; command is data enrichment command (adds more information from lookup table to current result based on matching field). What you need is a subsearch to use lookup as filter, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search [| inputlookup lookupfile | table user | dedup user]
| ... rest of the search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search
| search  [| inputlookup lookupfile | table user | dedup user]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:40:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344751#M102130</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-13T16:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return values that match column in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344752#M102131</link>
      <description>&lt;P&gt;Thx for the clarification&lt;/P&gt;

&lt;P&gt;If I wanted to add additional fields from the lookup file, such as Full Name, Dept #, while still matching only those user names in the lookup file, how would I perform that search?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 16:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344752#M102131</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2017-12-13T16:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return values that match column in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344753#M102132</link>
      <description>&lt;P&gt;You would need to use both filter and enrichment version for that. The optimum approach would to filter first and then enrich, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search [| inputlookup lookupfile | table user | dedup user]
 | ... rest of the search
| lookup lookupfile user OUTPUT "Full Name" "Dept #" ..all other fields
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2017 17:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344753#M102132</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-13T17:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I return values that match column in Lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344754#M102133</link>
      <description>&lt;P&gt;This worked perfectly!!!  Thank you. &lt;/P&gt;

&lt;P&gt;[| inputlookup lookupfile | table user | dedup user]&lt;BR /&gt;
  | ... rest of the search&lt;BR /&gt;
 | lookup lookupfile user OUTPUT "Full Name" "Dept #" ..all other fields&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 17:10:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-return-values-that-match-column-in-Lookup-table/m-p/344754#M102133</guid>
      <dc:creator>jaxjohnny2000</dc:creator>
      <dc:date>2019-08-02T17:10:08Z</dc:date>
    </item>
  </channel>
</rss>

