<?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: Trying to index a csv lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275702#M83169</link>
    <description>&lt;P&gt;If you want to add a lookup table to your logs then yes. What exactly are you trying to accomplish? &lt;/P&gt;

&lt;P&gt;This article walks you through step by step &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchTutorial/Usefieldlookups"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchTutorial/Usefieldlookups&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 18:38:52 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2016-07-20T18:38:52Z</dc:date>
    <item>
      <title>Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275692#M83159</link>
      <description>&lt;P&gt;I have a .csv file that is just over 2GB, I noticed that the lookup table could only handle 500MB or less, so I reduced the amount of rows and was able to upload it. &lt;/P&gt;

&lt;P&gt;Now, I'm trying to figure out how to show that data in a Splunk search and I don't really have any idea where to start.&lt;/P&gt;

&lt;P&gt;Any guidance or help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275692#M83159</guid>
      <dc:creator>zsizemore</dc:creator>
      <dc:date>2016-07-20T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275693#M83160</link>
      <description>&lt;P&gt;I'm not sure I understand the question fully. You uploaded data into Splunk, you then uploaded a lookup table. You then need to set up the &lt;CODE&gt;field lookup definition&lt;/CODE&gt; so you can correlate fields to the lookup table, then you need to make the lookup table automatic. Can you give us more information as to what your trying to accomplish?  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchTutorial/Usefieldlookups"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchTutorial/Usefieldlookups&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275693#M83160</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-07-20T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275694#M83161</link>
      <description>&lt;P&gt;Try for a listing of everything in the lookup file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup yourcsvfile.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275694#M83161</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-20T14:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275695#M83162</link>
      <description>&lt;P&gt;The first thing I did was upload the .csv as a Lookup table, there wasn't anywhere to "upload" the data into Splunk otherwise. &lt;/P&gt;

&lt;P&gt;When I go to the Lookup definitions page, and try to select the App Context that I created the Lookup Table in -- it gives me a 500 Internal Server error.&lt;/P&gt;

&lt;P&gt;Sorry i'm not very experienced with Splunk, I was given a .csv file by someone and told to import it to Splunk so I could write a query for it, etc.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:27:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275695#M83162</guid>
      <dc:creator>zsizemore</dc:creator>
      <dc:date>2016-07-20T14:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275696#M83163</link>
      <description>&lt;P&gt;Ok, I think I understand what you mean. So you had a CSV file that you wanted to upload into Splunk so you could run queries against it and return data. I'm assuming that you didn't want a lookup table but rather a way to upload data into Splunk.. If this is the case then there's a few ways of doing this.. &lt;/P&gt;

&lt;P&gt;You could upload the data once by going to the GUI &lt;CODE&gt;Settings&amp;gt;Add Data&lt;/CODE&gt; or you could run a simple oneshoot command to get it uploaded (See below).. If you have to contineously upload the data then I would recommend installing a Splunk forwarder and have it monitor that data so it can index it in real time &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Open PowerShell or CMD as Admin&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;cd Splunk_Home\bin&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;.\splunk add oneshot C:\Program Files\AppLog\log.txt&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Linux&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;cd Splunk_home/bin&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;./splunk add oneshot /var/log/applog&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The oneshoot command will tell this that it should not monitor the file and that it should only upload it one time which is when you run the command &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275696#M83163</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-07-20T14:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275697#M83164</link>
      <description>&lt;P&gt;When I uploaded my .csv I named it ViaTest, and it shows it in the Lookup Table Files settings, but when I tried running that command, it says "The lookup table 'ViaTest' is invalid&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275697#M83164</guid>
      <dc:creator>zsizemore</dc:creator>
      <dc:date>2016-07-20T14:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275698#M83165</link>
      <description>&lt;P&gt;What is the difference in uploading the data vs. creating a lookup table if you don't mind me asking?&lt;/P&gt;

&lt;P&gt;I tried uploading it via the GUI first off, but the "Add Data" option isn't available to me under settings, something to do with what permissions I have access to, i'll have to ask someone higher up to do it for me I suppose.  In that case they would have to be the one to install the Splunk forwarder too then?&lt;/P&gt;

&lt;P&gt;I'm on OS X so the oneshoot cmd isn't an option I guess.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275698#M83165</guid>
      <dc:creator>zsizemore</dc:creator>
      <dc:date>2016-07-20T14:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275699#M83166</link>
      <description>&lt;P&gt;Try ViaTest.csv &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:46:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275699#M83166</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-20T14:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275700#M83167</link>
      <description>&lt;P&gt;OSX shell is the same as Linux so you can run the Linux command to do the oneshoot. If you have access to the host machine then you can install a forwarder and point it to the indexer and it should get the data flowing in&lt;/P&gt;

&lt;P&gt;As for the lookup, I will give you an example.. Say you have a process that has 2 return codes &lt;CODE&gt;3&lt;/CODE&gt; AND &lt;CODE&gt;4&lt;/CODE&gt;.. So say you have no idea what these return codes mean, but you also don't want to change the logging style but you also want a clear way to communicate what these return codes are. You can upload a lookup table in Splunk to correlate the return values to actual names.. So say &lt;CODE&gt;3&lt;/CODE&gt; represents &lt;CODE&gt;pass&lt;/CODE&gt; and &lt;CODE&gt;4&lt;/CODE&gt; represents &lt;CODE&gt;fail&lt;/CODE&gt;.. You can have the fields return &lt;CODE&gt;Pass&lt;/CODE&gt; and &lt;CODE&gt;Fail&lt;/CODE&gt; rather than the numbers without changing your logs.. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275700#M83167</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-07-20T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275701#M83168</link>
      <description>&lt;P&gt;Okay interesting...thanks a bunch for explaining that.&lt;/P&gt;

&lt;P&gt;I've got someone else with permissions to upload the entire csv for me (~2GB), so now I need to add new Lookup definitions defining the fields I want?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 18:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275701#M83168</guid>
      <dc:creator>zsizemore</dc:creator>
      <dc:date>2016-07-20T18:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275702#M83169</link>
      <description>&lt;P&gt;If you want to add a lookup table to your logs then yes. What exactly are you trying to accomplish? &lt;/P&gt;

&lt;P&gt;This article walks you through step by step &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchTutorial/Usefieldlookups"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchTutorial/Usefieldlookups&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 18:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275702#M83169</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-07-20T18:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to index a csv lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275703#M83170</link>
      <description>&lt;P&gt;Send it in as &lt;CODE&gt;data&lt;/CODE&gt; with an ad-hoc upload instead of as a &lt;CODE&gt;lookup&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Settings&lt;/CODE&gt; -&amp;gt;  &lt;CODE&gt;Add Data&lt;/CODE&gt; (the large icon in the upper left corner of the menu dialog) -&amp;gt; &lt;CODE&gt;Upload&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 19:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Trying-to-index-a-csv-lookup-table/m-p/275703#M83170</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-20T19:56:21Z</dc:date>
    </item>
  </channel>
</rss>

