<?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: Compare Search Result Against Lookup File and Output Multiple Fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260119#M77971</link>
    <description>&lt;P&gt;Based on your description, all of these MUST be true (and probably one ore more is not) for it to work:&lt;BR /&gt;
1: There is a field in your events called &lt;CODE&gt;dns&lt;/CODE&gt; (spelling and punctuation must be exact)&lt;BR /&gt;
2: There is a field in your lookup file called &lt;CODE&gt;dns&lt;/CODE&gt; (spelling and punctuation must be exact)&lt;BR /&gt;
3: There is a field in your lookup file called &lt;CODE&gt;Owner&lt;/CODE&gt; (spelling and punctuation must be exact)&lt;/P&gt;

&lt;P&gt;Also, there &lt;EM&gt;should&lt;/EM&gt; be (and in the latest versions of Splunk possibly &lt;EM&gt;must&lt;/EM&gt; be) a &lt;CODE&gt;lookup definition&lt;/CODE&gt; with &lt;CODE&gt;ServerList.csv&lt;/CODE&gt; as the name and as the file to reference.&lt;/P&gt;

&lt;P&gt;Also check the logs for &lt;CODE&gt;bundle replication&lt;/CODE&gt; problems.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2016 15:11:47 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-03-24T15:11:47Z</dc:date>
    <item>
      <title>Compare Search Result Against Lookup File and Output Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260114#M77966</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am not sure what I am doing wrong but logically I feel this search string should work however it isn't working.&lt;/P&gt;

&lt;P&gt;S here is a description of what I am trying to do, I am trying to run a search of my data in Splunk, then output a field named DNS, then lookup each DNS field in a lookup csv file and where there is a match it should output the corresponding Owner. Here is the search string;&lt;/P&gt;

&lt;P&gt;index=main sourcetype=ServerList dns=* | dedup dns | table dns | lookup ServerList.csv dns OUTPUT Owner |  table dns Owner&lt;/P&gt;

&lt;P&gt;What am I doing wrong here, I get the dns field but no Owner field is populated?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 15:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260114#M77966</guid>
      <dc:creator>Makinde</dc:creator>
      <dc:date>2016-03-23T15:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Search Result Against Lookup File and Output Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260115#M77967</link>
      <description>&lt;P&gt;Check the field name in the ServerList.csv file which corresponds to field dns. If they don't have same name OR case is different, above will not work.&lt;/P&gt;

&lt;P&gt;In case they are different OR of different case, use this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=ServerList dns=* | dedup dns | table dns | lookup ServerList.csv FieldNameInlookup as dns OUTPUT Owner | table dns Owner
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Mar 2016 15:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260115#M77967</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-23T15:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Search Result Against Lookup File and Output Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260116#M77968</link>
      <description>&lt;P&gt;I am really confused here as I have minimum of at least 25 searches utilizing the csv file for different types of lookup and I am getting the expected result however this one in particular isn't working.&lt;/P&gt;

&lt;P&gt;The fields are correct, word for word. it does actually run, it just doesn't return any values for the Owner field. If the field didn't exist I should get an error that it can't match the fields.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 16:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260116#M77968</guid>
      <dc:creator>Makinde</dc:creator>
      <dc:date>2016-03-23T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Search Result Against Lookup File and Output Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260117#M77969</link>
      <description>&lt;P&gt;And you validated that the DNS from your search results are available in the lookup file?&lt;/P&gt;

&lt;P&gt;Run this and see if this returns anything.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=ServerList dns=* | dedup dns | table dns | eval From="search"| append [| inputlookup  ServerList.csv | table dns Owner | eval From="lookup" ] | stats values(*) as * by dns
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Mar 2016 17:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260117#M77969</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-23T17:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Search Result Against Lookup File and Output Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260118#M77970</link>
      <description>&lt;P&gt;Yes I validated the values from the DNS exist in the lookup file.&lt;/P&gt;

&lt;P&gt;I ran the each you suggested, I get the DNS from the search, I also get the DNS from the lookupfile with the respective Owners against them.&lt;/P&gt;

&lt;P&gt;I guess this confirms the lookup file works and the search criteria works as well. So what do I do to make it work out now?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 17:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260118#M77970</guid>
      <dc:creator>Makinde</dc:creator>
      <dc:date>2016-03-23T17:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Search Result Against Lookup File and Output Multiple Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260119#M77971</link>
      <description>&lt;P&gt;Based on your description, all of these MUST be true (and probably one ore more is not) for it to work:&lt;BR /&gt;
1: There is a field in your events called &lt;CODE&gt;dns&lt;/CODE&gt; (spelling and punctuation must be exact)&lt;BR /&gt;
2: There is a field in your lookup file called &lt;CODE&gt;dns&lt;/CODE&gt; (spelling and punctuation must be exact)&lt;BR /&gt;
3: There is a field in your lookup file called &lt;CODE&gt;Owner&lt;/CODE&gt; (spelling and punctuation must be exact)&lt;/P&gt;

&lt;P&gt;Also, there &lt;EM&gt;should&lt;/EM&gt; be (and in the latest versions of Splunk possibly &lt;EM&gt;must&lt;/EM&gt; be) a &lt;CODE&gt;lookup definition&lt;/CODE&gt; with &lt;CODE&gt;ServerList.csv&lt;/CODE&gt; as the name and as the file to reference.&lt;/P&gt;

&lt;P&gt;Also check the logs for &lt;CODE&gt;bundle replication&lt;/CODE&gt; problems.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 15:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Compare-Search-Result-Against-Lookup-File-and-Output-Multiple/m-p/260119#M77971</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-03-24T15:11:47Z</dc:date>
    </item>
  </channel>
</rss>

