<?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 How to transfer existing CSV data to kvstore? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144641#M29538</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have just installed splunk 6.2 version and need to transfer my existing .csv lookup files to KV store. I have tried lot of things from the net but no luck. Can anybody help me with a solution or useful link where I can get some sample examples?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Sandeep Thosar&lt;/P&gt;</description>
    <pubDate>Thu, 04 Dec 2014 14:00:46 GMT</pubDate>
    <dc:creator>sandeep_thosar</dc:creator>
    <dc:date>2014-12-04T14:00:46Z</dc:date>
    <item>
      <title>How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144641#M29538</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have just installed splunk 6.2 version and need to transfer my existing .csv lookup files to KV store. I have tried lot of things from the net but no luck. Can anybody help me with a solution or useful link where I can get some sample examples?&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Sandeep Thosar&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 14:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144641#M29538</guid>
      <dc:creator>sandeep_thosar</dc:creator>
      <dc:date>2014-12-04T14:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144642#M29539</link>
      <description>&lt;P&gt;Here is exactly what you are looking for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEZQ" target="test_blank"&gt;http://dev.splunk.com/view/SP-CAAAEZQ&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Good Luck&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2014 14:01:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144642#M29539</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-12-04T14:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144643#M29540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for the prompt reply. I have already tried link which you mentioned but i have received following error.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'outputlookup' command: The lookup table 'test' is invalid.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Dec 2014 14:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144643#M29540</guid>
      <dc:creator>sandeep_thosar</dc:creator>
      <dc:date>2014-12-04T14:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144644#M29541</link>
      <description>&lt;P&gt;Hi. this worked for me:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;collections.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;collectionname&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;collectionname&amp;gt;_lookup]
external_type = kvstore
collection = &amp;lt;collectionname&amp;gt;
fields_list = _key, &amp;lt;comma separated list of fields&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then use a command like that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;yourfile&amp;gt;.csv | outputlookup &amp;lt;collectionname&amp;gt;_lookup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Edit: Example:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;collection.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mycoll]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mycoll_lookup]
external_type = kvstore
collection = mycoll
fields_list = _key, field1, field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;data.csv&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;field1,field2
value11,value12
value21,value22
value31,value32
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup data.csv | outputlookup mycoll_lookup
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Dec 2014 15:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144644#M29541</guid>
      <dc:creator>Muryoutaisuu</dc:creator>
      <dc:date>2014-12-04T15:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144645#M29542</link>
      <description>&lt;P&gt;Please, post the search you are using...&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144645#M29542</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-12-05T08:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144646#M29543</link>
      <description>&lt;P&gt;Looks to me as if you forgot the transforms.conf stanza&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144646#M29543</guid>
      <dc:creator>Muryoutaisuu</dc:creator>
      <dc:date>2014-12-05T08:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144647#M29544</link>
      <description>&lt;P&gt;Hi  Muryoutaisuu&lt;/P&gt;

&lt;P&gt;Thanks for the reply. I have one query where we store collections.conf and transforms.conf file, means on local directory or on somewhere inside Splunk home directory.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144647#M29544</guid>
      <dc:creator>sandeep_thosar</dc:creator>
      <dc:date>2014-12-05T09:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to transfer existing CSV data to kvstore?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144648#M29545</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;In my scenario i have created one Lookup file (.csv) which contains AccountNo's and from this Lookup file need to insert records into the kvstore_Lookup. Folowing is my search Query.&lt;/P&gt;

&lt;P&gt;| inputlookup lkpAttemptByAccount.csv | outputlookup mycollections_lookup&lt;/P&gt;

&lt;P&gt;Thanks in Advance.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Sandeep &lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-transfer-existing-CSV-data-to-kvstore/m-p/144648#M29545</guid>
      <dc:creator>sandeep_thosar</dc:creator>
      <dc:date>2014-12-05T09:51:36Z</dc:date>
    </item>
  </channel>
</rss>

