<?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 parse csv content and header for fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/parse-csv-content-and-header-for-fields/m-p/500459#M85281</link>
    <description>&lt;P&gt;Hi @ All,&lt;/P&gt;

&lt;P&gt;i´ve got problems to parse the following file / content:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"CreationTime","LastWriteTime","LastAccessTime","Name","Length","Directory"
"25/03/2020 10:27:21","25/03/2020 10:27:36","25/03/2020 10:27:21","01.txt","5","C:\Share"
"25/03/2020 11:12:10","13/12/2019 11:48:07","25/03/2020 11:12:10","splunkforwarder-8.0.1.msi","68755456","C:\Share"
"25/03/2020 10:28:04","25/03/2020 10:28:17","25/03/2020 10:28:04","01.txt","13","C:\Share\A"
"25/03/2020 10:28:04","25/03/2020 10:28:32","25/03/2020 10:28:22","02.txt","12","C:\Share\A"
"25/03/2020 10:28:53","25/03/2020 10:28:53","25/03/2020 10:28:53","Empty.zip","22","C:\Share\B"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my problem is, that splunk dont regognise / use the header infomations and dont split per line.&lt;BR /&gt;
i tried with probs.conf CSV option, header check, filds delmiter, header delimter, quotes option, field names, etc etc...&lt;/P&gt;

&lt;P&gt;All options displays the same result... the header as event and one of the lines (randomly) as event...&lt;/P&gt;

&lt;P&gt;Anybody who can help me?&lt;/P&gt;

&lt;P&gt;THX - Markus&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 08:33:26 GMT</pubDate>
    <dc:creator>pduvofmr</dc:creator>
    <dc:date>2020-03-26T08:33:26Z</dc:date>
    <item>
      <title>parse csv content and header for fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parse-csv-content-and-header-for-fields/m-p/500459#M85281</link>
      <description>&lt;P&gt;Hi @ All,&lt;/P&gt;

&lt;P&gt;i´ve got problems to parse the following file / content:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"CreationTime","LastWriteTime","LastAccessTime","Name","Length","Directory"
"25/03/2020 10:27:21","25/03/2020 10:27:36","25/03/2020 10:27:21","01.txt","5","C:\Share"
"25/03/2020 11:12:10","13/12/2019 11:48:07","25/03/2020 11:12:10","splunkforwarder-8.0.1.msi","68755456","C:\Share"
"25/03/2020 10:28:04","25/03/2020 10:28:17","25/03/2020 10:28:04","01.txt","13","C:\Share\A"
"25/03/2020 10:28:04","25/03/2020 10:28:32","25/03/2020 10:28:22","02.txt","12","C:\Share\A"
"25/03/2020 10:28:53","25/03/2020 10:28:53","25/03/2020 10:28:53","Empty.zip","22","C:\Share\B"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my problem is, that splunk dont regognise / use the header infomations and dont split per line.&lt;BR /&gt;
i tried with probs.conf CSV option, header check, filds delmiter, header delimter, quotes option, field names, etc etc...&lt;/P&gt;

&lt;P&gt;All options displays the same result... the header as event and one of the lines (randomly) as event...&lt;/P&gt;

&lt;P&gt;Anybody who can help me?&lt;/P&gt;

&lt;P&gt;THX - Markus&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 08:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parse-csv-content-and-header-for-fields/m-p/500459#M85281</guid>
      <dc:creator>pduvofmr</dc:creator>
      <dc:date>2020-03-26T08:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: parse csv content and header for fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parse-csv-content-and-header-for-fields/m-p/500460#M85282</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;

&lt;P&gt;you can use Settings -&amp;gt; Add Data wizard to get the parsing right. Here are the settings that I got using wizard:&lt;BR /&gt;
    [ your_csv_sourcetype ]&lt;BR /&gt;
    CHARSET=UTF-8&lt;BR /&gt;
    INDEXED_EXTRACTIONS=csv&lt;BR /&gt;
    KV_MODE=none&lt;BR /&gt;
    SHOULD_LINEMERGE=false&lt;BR /&gt;
    disabled=false&lt;BR /&gt;
    pulldown_type=true&lt;/P&gt;

&lt;P&gt;you have to put this configuration on &lt;STRONG&gt;universal forwarder&lt;/STRONG&gt; or where splunk reads the file, not on indexer or on search head. As mentioned in props.conf:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;This setting applies at &lt;STRONG&gt;input time&lt;/STRONG&gt;, when data is first read by Splunk software, such as on a forwarder that has configured inputs acquiring the data.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Additionally you have to set KV_MODE=none on SH. Which time field should be used as time source is up to you, use TIMESTAMP_FIELDS for it.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/287689-2020-03-26-09-42-13-add-data-set-sourcetype-splunk.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parse-csv-content-and-header-for-fields/m-p/500460#M85282</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-09-30T04:42:50Z</dc:date>
    </item>
  </channel>
</rss>

