<?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 proper format for lookup table files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59428#M14631</link>
    <description>&lt;P&gt;I'm working on defining a new lookup table. I found the tutorial and example files. &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;BR /&gt;
When using the web interface to upload the file I always get the following error:&lt;BR /&gt;
"Encountered the following error while trying to save: In handler 'lookup-table-files': File is binary and not gzipped"&lt;/P&gt;

&lt;P&gt;Things I have tried so far:&lt;BR /&gt;
 - Checking the line endings. I tried CR, LF, and CR\LF&lt;BR /&gt;
 - Looking for special characters. There are no accents or odd characters. Also no odd end of file stuff. &lt;BR /&gt;
 - The file type is UTF-8&lt;/P&gt;

&lt;P&gt;Searching the spunk answers I see others asking the question but no clear fix. &lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2013 21:37:56 GMT</pubDate>
    <dc:creator>jalfrey</dc:creator>
    <dc:date>2013-03-12T21:37:56Z</dc:date>
    <item>
      <title>proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59428#M14631</link>
      <description>&lt;P&gt;I'm working on defining a new lookup table. I found the tutorial and example files. &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;BR /&gt;
When using the web interface to upload the file I always get the following error:&lt;BR /&gt;
"Encountered the following error while trying to save: In handler 'lookup-table-files': File is binary and not gzipped"&lt;/P&gt;

&lt;P&gt;Things I have tried so far:&lt;BR /&gt;
 - Checking the line endings. I tried CR, LF, and CR\LF&lt;BR /&gt;
 - Looking for special characters. There are no accents or odd characters. Also no odd end of file stuff. &lt;BR /&gt;
 - The file type is UTF-8&lt;/P&gt;

&lt;P&gt;Searching the spunk answers I see others asking the question but no clear fix. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 21:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59428#M14631</guid>
      <dc:creator>jalfrey</dc:creator>
      <dc:date>2013-03-12T21:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59429#M14632</link>
      <description>&lt;P&gt;Hey jalfrey, I had a lot of issues getting lookup tables to work when I first started using them.  Is the file simply a csv file and can you post a couple of lines as an example?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 22:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59429#M14632</guid>
      <dc:creator>vincesesto</dc:creator>
      <dc:date>2013-03-12T22:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59430#M14633</link>
      <description>&lt;P&gt;From the &lt;A href="http://docs.splunk.com/Documentation/ES/2.2.1/Install/Applicationprotocolsblacklist"&gt;docs&lt;/A&gt; (mid-page)&lt;/P&gt;

&lt;P&gt;"The CSV files used as lookups must be created with UNIX-style line endings ("\n"). Splunk will not correctly read lookup files saved using Macintosh ("\r") or Windows line endings ("\r\n")."&lt;/P&gt;

&lt;P&gt;You might find the &lt;CODE&gt;dos2unix&lt;/CODE&gt; utility helpful. Some editors (like Komodo Edit) will let you choose the line-ending style in the preferences or options.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 22:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59430#M14633</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-03-12T22:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59431#M14634</link>
      <description>&lt;P&gt;Xcode has the option to set the line endings. I also used dos2unix. Neither worked for me.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 22:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59431#M14634</guid>
      <dc:creator>jalfrey</dc:creator>
      <dc:date>2013-03-12T22:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59432#M14635</link>
      <description>&lt;P&gt;I'm tying to upload the file as a .csv. I see that it supports .zip. I tried zipping it but that did not fix it either.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 22:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59432#M14635</guid>
      <dc:creator>jalfrey</dc:creator>
      <dc:date>2013-03-12T22:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59433#M14636</link>
      <description>&lt;P&gt;Wow - what's in this file... and where are you putting it? Can you open it with Text Edit?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 23:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59433#M14636</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-03-12T23:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59434#M14637</link>
      <description>&lt;P&gt;Also, can you copy the file onto the Splunk server (with ftp or something) - and then see if you can edit it there with a local text editor? Does it look okay then?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 23:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59434#M14637</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-03-12T23:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59435#M14638</link>
      <description>&lt;P&gt;ok so it turns out that the formatting was not a problem. The feature of being able to upload the file via the GUI is currently broken. You must manually stage the $PLUNK_INSTALLs/etc/apps/search/lookups &lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 20:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59435#M14638</guid>
      <dc:creator>jalfrey</dc:creator>
      <dc:date>2013-06-17T20:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59436#M14639</link>
      <description>&lt;P&gt;In 6.0.1 to 6.0.3 the upload feature does work, and you do have to have unix like line "\n" endings.&lt;/P&gt;

&lt;P&gt;To make the file acceptable via komodo open the original csv then open a new file and copy and paste the text, just resaving will not work.&lt;/P&gt;

&lt;P&gt;For those interested the feature is enabled in Komodo by default and is found at:&lt;BR /&gt;
Preferences&amp;gt;New Files&amp;gt;Specify the end-of-line (EOL) inidicator for newly created files:&lt;/P&gt;

&lt;P&gt;I will upload a screenshot once I have more karma.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 17:26:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59436#M14639</guid>
      <dc:creator>michael_peters</dc:creator>
      <dc:date>2014-04-29T17:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59437#M14640</link>
      <description>&lt;P&gt;I used TextWrangler on my mac to get things in the right Unix format. That resolved my issues.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 18:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59437#M14640</guid>
      <dc:creator>kknopp</dc:creator>
      <dc:date>2014-10-13T18:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: proper format for lookup table files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59438#M14641</link>
      <description>&lt;P&gt;This issue happened with me when I've a column that has German letters ü,ß,ä ... &lt;BR /&gt;
after I removed this column from csv file it uploaded successfully &lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2015 16:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/proper-format-for-lookup-table-files/m-p/59438#M14641</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2015-01-14T16:43:39Z</dc:date>
    </item>
  </channel>
</rss>

