<?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: Lookup matching field and bring in new field from lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399829#M115889</link>
    <description>&lt;P&gt;Try swapping clienthost and DNS around &lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 20:11:12 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2019-01-16T20:11:12Z</dc:date>
    <item>
      <title>Lookup matching field and bring in new field from lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399824#M115884</link>
      <description>&lt;P&gt;Hello, I've been banging my head against the wall over the last like two hours over this and figured I should just post since I don't find Splunk documentation that helpful, detailed, or plentiful.&lt;/P&gt;

&lt;P&gt;Objective: What I want to do is we have the results from a nice search query. Now we want to take the full hostname and compare that to a field in the Lookup and from there bringing in an related alternate field from that lookup.&lt;/P&gt;

&lt;P&gt;The example hopefully is easy to understand and something quick I'm just screwing up.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6368i8348C51C71878BD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;So our query below is returning us the following:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6369i621B44B5835E1FEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;What I want to accomplish is use the CSV lookup file I have, use the &lt;STRONG&gt;clienthost&lt;/STRONG&gt; field and compare that against the &lt;STRONG&gt;DNS&lt;/STRONG&gt; field in my lookup file. And from there automatically pull in the matching related value from &lt;STRONG&gt;Description&lt;/STRONG&gt;. Does that make sense hopefully. I tried every variation of using | | lookup ComputerNameDescription.csv DNS as clienthost OUTPUT Description, etc. Idk. I tried like 20 different ways and it's not looking it up, matching and letting me bring in the matching Description.&lt;/P&gt;

&lt;P&gt;Can someone please tell me what we're doing wrong.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 21:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399824#M115884</guid>
      <dc:creator>rpatelnes</dc:creator>
      <dc:date>2019-01-15T21:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup matching field and bring in new field from lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399825#M115885</link>
      <description>&lt;P&gt;@rpatelnes &lt;/P&gt;

&lt;P&gt;Have you tried &lt;CODE&gt;OUTPUTNEW&lt;/CODE&gt; option of &lt;CODE&gt;lookup&lt;/CODE&gt; command ?&lt;/P&gt;

&lt;P&gt;Can you please confirm &lt;CODE&gt;DescriptionNew&lt;/CODE&gt; returning anything using below &lt;CODE&gt;lookup&lt;/CODE&gt; command?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| lookup ComputerNameDescription.csv DNS as clienthost OUTPUTNEW Description as DescriptionNew
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ref:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/7.1.3/SearchReference/Lookup"&gt;https://docs.splunk.com/Documentation/SplunkCloud/7.1.3/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 11:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399825#M115885</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-16T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup matching field and bring in new field from lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399826#M115886</link>
      <description>&lt;P&gt;I don’t see the ip fields in your lookup.&lt;/P&gt;

&lt;P&gt;So there’s nothing to match/join it to.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 15:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399826#M115886</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-01-16T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup matching field and bring in new field from lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399827#M115887</link>
      <description>&lt;P&gt;@kamlesh_vaghela &lt;/P&gt;

&lt;P&gt;I have tried that as one of the variations when I was going through the documentation, but it still doesn't work. See my image below:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6367iAAB5B9A2A5613A9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;@jkat54 &lt;/P&gt;

&lt;P&gt;Yes there is a match. I'm matching the &lt;STRONG&gt;DNS&lt;/STRONG&gt; field in the CSV to my &lt;STRONG&gt;clienthost&lt;/STRONG&gt; field in my events which should align. See images.&lt;/P&gt;

&lt;P&gt;Any further ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 15:20:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399827#M115887</guid>
      <dc:creator>rpatelnes</dc:creator>
      <dc:date>2019-01-16T15:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup matching field and bring in new field from lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399828#M115888</link>
      <description>&lt;P&gt;Not in your search sample you gave.&lt;/P&gt;

&lt;P&gt;You need to give lookup command more details.&lt;/P&gt;

&lt;P&gt;See the lookup command documentation Kamlesh provided.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:09:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399828#M115888</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-01-16T20:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup matching field and bring in new field from lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399829#M115889</link>
      <description>&lt;P&gt;Try swapping clienthost and DNS around &lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399829#M115889</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-01-16T20:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup matching field and bring in new field from lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399830#M115890</link>
      <description>&lt;P&gt;No real answer yet, all suggestions have failed so far.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 21:13:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-matching-field-and-bring-in-new-field-from-lookup/m-p/399830#M115890</guid>
      <dc:creator>rpatelnes</dc:creator>
      <dc:date>2019-01-23T21:13:59Z</dc:date>
    </item>
  </channel>
</rss>

