<?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: Filter a search result with lookup values- What command is most appropriate for this? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filter-a-search-result-with-lookup-values-What-command-is-most/m-p/612000#M212788</link>
    <description>&lt;P&gt;Two approaches&lt;/P&gt;&lt;P&gt;Subsearch&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search [ | inputlookup your_lookup.csv | fields user_email ]&lt;/LI-CODE&gt;&lt;P&gt;or Lookup&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search 
| lookup your_lookup.csv user_email OUTPUT user_email as found_email
| where isnotnull(found_email)&lt;/LI-CODE&gt;&lt;P&gt;To some extent your choice will depend on what you prefer, but also data volume, size of lookup, which both affect performance.&lt;/P&gt;&lt;P&gt;If the email list is large, then the subsearch is probably not the best option, but you can look at the job inspector to see which on has the best performance for your data&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2022 23:58:55 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2022-09-05T23:58:55Z</dc:date>
    <item>
      <title>Filter a search result with lookup values- What command is most appropriate for this?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-a-search-result-with-lookup-values-What-command-is-most/m-p/611997#M212785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a search query where a field is named "user_email".&lt;BR /&gt;I also have a lookup table where I have a list of emails.&lt;BR /&gt;&lt;BR /&gt;Now I want my search query to only show results where "user_email" is present in the lookup table that I have.&lt;/P&gt;
&lt;P&gt;What command is most appropriate for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 22:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-a-search-result-with-lookup-values-What-command-is-most/m-p/611997#M212785</guid>
      <dc:creator>iammax</dc:creator>
      <dc:date>2022-09-05T22:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a search result with lookup values- What command is most appropriate for this?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-a-search-result-with-lookup-values-What-command-is-most/m-p/612000#M212788</link>
      <description>&lt;P&gt;Two approaches&lt;/P&gt;&lt;P&gt;Subsearch&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search [ | inputlookup your_lookup.csv | fields user_email ]&lt;/LI-CODE&gt;&lt;P&gt;or Lookup&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search 
| lookup your_lookup.csv user_email OUTPUT user_email as found_email
| where isnotnull(found_email)&lt;/LI-CODE&gt;&lt;P&gt;To some extent your choice will depend on what you prefer, but also data volume, size of lookup, which both affect performance.&lt;/P&gt;&lt;P&gt;If the email list is large, then the subsearch is probably not the best option, but you can look at the job inspector to see which on has the best performance for your data&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 23:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-a-search-result-with-lookup-values-What-command-is-most/m-p/612000#M212788</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-05T23:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a search result with lookup values- What command is most appropriate for this?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-a-search-result-with-lookup-values-What-command-is-most/m-p/612003#M212791</link>
      <description>&lt;P&gt;If you're looking for something in a lookup table then the correct command to use is &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt;.&amp;nbsp; You look for the given value in the table and get some other field from the lookup table in response.&amp;nbsp; If the response is not &lt;FONT face="courier new,courier"&gt;NULL&lt;/FONT&gt; then the value exists in the lookup.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup mylookup.csv user_field OUTPUT foo
| where isnotnull(foo)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 00:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-a-search-result-with-lookup-values-What-command-is-most/m-p/612003#M212791</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-06T00:13:37Z</dc:date>
    </item>
  </channel>
</rss>

