<?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 to combine results of a search with a csv file in a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168312#M48000</link>
    <description>&lt;P&gt;Is this working for you?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2015 11:37:50 GMT</pubDate>
    <dc:creator>vganjare</dc:creator>
    <dc:date>2015-04-30T11:37:50Z</dc:date>
    <item>
      <title>How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168305#M47993</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have a search that counts the appearance of an id. The first column is the id, the second is the count. I want a third column in that table, where the description for the id is listed. The description is now in a csv file. The first column in this file is the id, the second is the description. How can i compare the splunk search result and the csv file?&lt;BR /&gt;
The result should look like this:&lt;/P&gt;

&lt;P&gt;ID | Description | count&lt;/P&gt;

&lt;P&gt;Thank you!!&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 09:34:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168305#M47993</guid>
      <dc:creator>ChrisGermer</dc:creator>
      <dc:date>2015-04-29T09:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168306#M47994</link>
      <description>&lt;P&gt;You can try using &lt;STRONG&gt;lookup&lt;/STRONG&gt; command. More details @ &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Lookup"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 09:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168306#M47994</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-04-29T09:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168307#M47995</link>
      <description>&lt;P&gt;Hi vganjare,&lt;/P&gt;

&lt;P&gt;thanks for ur answer. I tried to use the lookup command. But i can not get it work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;this is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="DhcpSrvLog" | table msdhcp_id  | lookup DhcpSrvLog_LOOKUP ID as msdhcp_id OUTPUT Description
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get an error every time: Error in 'lookup' command: Could not find all of the specified lookup fields in the lookup table. &lt;BR /&gt;
The csv file is uploded, and a lookup-definition is made. So, whats wrong? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 11:50:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168307#M47995</guid>
      <dc:creator>ChrisGermer</dc:creator>
      <dc:date>2015-04-29T11:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168308#M47996</link>
      <description>&lt;P&gt;The column names are correctly and i get an output with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup DhcpSrvLog_LOOKUP
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2015 11:53:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168308#M47996</guid>
      <dc:creator>ChrisGermer</dc:creator>
      <dc:date>2015-04-29T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168309#M47997</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can you please provide the First two rows from the lookup. First row will have header names and second will have sample data.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 11:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168309#M47997</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-04-29T11:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168310#M47998</link>
      <description>&lt;P&gt;Ok, here it is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ID;Description
0;The log was started
1;The log was stopped 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2015 12:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168310#M47998</guid>
      <dc:creator>ChrisGermer</dc:creator>
      <dc:date>2015-04-29T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168311#M47999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The lookup should be "comma seperated csv" file. In your lookup, &lt;STRONG&gt;;&lt;/STRONG&gt; is causing the issues. If you change it to following, it will work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ID,Description
 0,The log was started
 1,The log was stopped 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2015 12:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168311#M47999</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-04-29T12:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168312#M48000</link>
      <description>&lt;P&gt;Is this working for you?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168312#M48000</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-04-30T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine results of a search with a csv file in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168313#M48001</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;
everything works fine with ur solution, thanks!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 06:21:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-results-of-a-search-with-a-csv-file-in-a-table/m-p/168313#M48001</guid>
      <dc:creator>ChrisGermer</dc:creator>
      <dc:date>2015-05-04T06:21:01Z</dc:date>
    </item>
  </channel>
</rss>

