<?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: Problems w/ basic lookup table. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28626#M5689</link>
    <description>&lt;P&gt;This is a windows install but when I first created the CSV it wouldnt take it- thought it was Binary until I used notepad++ to convert EOL to Unix format. &lt;/P&gt;

&lt;P&gt;The fact that when I pipe in the command &lt;BR /&gt;
inputlookup 87040695.csv&lt;BR /&gt;
or &lt;BR /&gt;
inputlookup 87040695&lt;BR /&gt;
it pulls the right info seems like it is taking the file correctly right? would that rule out issues w/ formatting or no? I'll go back, recreate it to start w/ letters &amp;amp; see if there is any change. &lt;/P&gt;

&lt;P&gt;The commands are correct right? It &lt;EM&gt;should&lt;/EM&gt; work IMO &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2013 16:38:36 GMT</pubDate>
    <dc:creator>clintla</dc:creator>
    <dc:date>2013-05-09T16:38:36Z</dc:date>
    <item>
      <title>Problems w/ basic lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28624#M5687</link>
      <description>&lt;P&gt;added the table files &amp;amp; definitions w/ just defaults. &lt;/P&gt;

&lt;P&gt;command is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="hitachi_poolinfo" host="*0695*" %
| rex 
  "\s+(?&amp;lt;lun_number&amp;gt;\d+)\s+(?&amp;lt;lun_capacity&amp;gt;\d+\.\d+)\s+(?&amp;lt;scale&amp;gt;(TB|GB))\s+(?&amp;lt;percent_consumed&amp;gt;\d+%)"
| lookup 87040695 lunnumber as lun_number OUTPUT DriveType as TIER
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Lookup table looks as per below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup 87040695.csv

Capacity  DP Pool  DriveType  Grouping  PathCount  Port  RAIDLevel  Server  ﻿lunnumber   
1 17 0 SATA CAESDB 1 0E RAID5(10D+1P) 000:DB2 0   
2 3 5 SATA CAESDB 1 0E RAID1+0(4D+4D) 000:DB3 1     
3 4 7 SAS CAESDB 1 0E RAID5(8D+1P) 000:DB4 11 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;error is - Error in 'lookup' command: Could not find all of the specified lookup fields in the lookup table.&lt;/P&gt;

&lt;P&gt;I've copy/pasted the lookup headers from the inputlookup. I've re-arranged columns. &lt;BR /&gt;
I've tried to pull out different columns, taken out spaces in the header info. Cant seemto get it to work. WHen I look at the DOC page in Splunk.com for lookups.. It seems identical. &lt;BR /&gt;
Splunk really doesnt mention what its not finding. lunnumber is there.. &lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 00:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28624#M5687</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2013-05-09T00:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problems w/ basic lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28625#M5688</link>
      <description>&lt;P&gt;What did you name the lookup? I can see that the csv file is named "87040695.csv", but what is the name of the lookup definition that you created?&lt;/P&gt;

&lt;P&gt;I would recommend that names in Splunk should start with a letter and contain only letters, numbers and underscores. Although that isn't required everywhere, it is a good habit.&lt;/P&gt;

&lt;P&gt;I assume that the actual file is in CSV format, with commas and enclosing quotation marks as appropriate. Have you checked to make sure that the line endings are Linux (" \n ")?&lt;BR /&gt;
That's a common problem. See the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources"&gt;docs&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 00:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28625#M5688</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-05-09T00:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems w/ basic lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28626#M5689</link>
      <description>&lt;P&gt;This is a windows install but when I first created the CSV it wouldnt take it- thought it was Binary until I used notepad++ to convert EOL to Unix format. &lt;/P&gt;

&lt;P&gt;The fact that when I pipe in the command &lt;BR /&gt;
inputlookup 87040695.csv&lt;BR /&gt;
or &lt;BR /&gt;
inputlookup 87040695&lt;BR /&gt;
it pulls the right info seems like it is taking the file correctly right? would that rule out issues w/ formatting or no? I'll go back, recreate it to start w/ letters &amp;amp; see if there is any change. &lt;/P&gt;

&lt;P&gt;The commands are correct right? It &lt;EM&gt;should&lt;/EM&gt; work IMO &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 16:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28626#M5689</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2013-05-09T16:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems w/ basic lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28627#M5690</link>
      <description>&lt;P&gt;Is there a column MAX? I removed a couple columns &amp;amp; now it works.. Puzzling.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 20:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28627#M5690</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2013-05-09T20:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems w/ basic lookup table.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28628#M5691</link>
      <description>&lt;P&gt;My guess is that there was something in one of those columns that caused Splunk to choke. Perhaps you should surround the text in those columns with quotation marks and try again.&lt;/P&gt;

&lt;P&gt;Excel is particularly bad about removing quotation marks, when the marks should remain - so I never edit my csv files with Excel.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2013 05:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problems-w-basic-lookup-table/m-p/28628#M5691</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-05-10T05:23:11Z</dc:date>
    </item>
  </channel>
</rss>

