<?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: Import CSV data, multiple events on single line in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478205#M82090</link>
    <description>&lt;P&gt;The issues I'm finding is that the field delimiter value as a comma (required) conflicts with the line breaker double comma. The above still doesn't break the events, but puts one line's worth of events into a single event. I'm still trying.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 01:48:43 GMT</pubDate>
    <dc:creator>jmeager_splunk</dc:creator>
    <dc:date>2019-09-11T01:48:43Z</dc:date>
    <item>
      <title>Import CSV data, multiple events on single line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478203#M82088</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;
I have a report in CSV format that disappointingly the product exports only monthly reports and puts each day's data into two columns for the number of days of data available. I am trying to import the data into an index.&lt;BR /&gt;
The data format I get is 720 rows (an event each two minutes) x number of days in the report in columns. The day split is denoted by a double comma (because the original xls file contains a blank column between each day) but using CSV import doesn't allow me to detect this as a LINE_BREAKER event (probably as the commas are being eaten by the CSV field split. I cannot seem to find a way to get it to split each line into the necessary individual events.&lt;/P&gt;

&lt;P&gt;Any advice would be greatly appreciated. I've tried building this through props as well as playing with it in the GUI to no avail. Essentially I can get it to detect the first _time value using %b %d/%Y %H:%M which works for the line, then I simply get all the events of the line in a multi-value fields labelled Time and Volt, rather than individual event.&lt;/P&gt;

&lt;P&gt;Any help appreciated.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Header row&lt;/STRONG&gt;&lt;BR /&gt;
Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt,,Time,Volt&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sample data line.&lt;/STRONG&gt;&lt;BR /&gt;
Aug 01/2019 00:01,12.65V,,Aug 02/2019 00:01,12.63V,,Aug 03/2019 00:01,12.64V,,Aug 04/2019 00:01,12.63V,,Aug 05/2019 00:01,12.57V,,Aug 06/2019 00:01,12.63V,,Aug 07/2019 00:01,12.61V,,Aug 08/2019 00:01,12.60V,,Aug 09/2019 00:01,12.62V,,Aug 10/2019 00:01,12.64V,,Aug 11/2019 00:01,12.59V,,Aug 12/2019 00:01,12.63V,,Aug 13/2019 00:01,12.64V,,Aug 14/2019 00:01,12.63V,,Aug 15/2019 00:01,12.64V,,Aug 16/2019 00:01,12.60V,,Aug 17/2019 00:01,12.61V,,Aug 18/2019 00:01,12.57V,,Aug 19/2019 00:01,12.58V,,Aug 20/2019 00:01,12.52V,,Aug 21/2019 00:01,12.45V,,Aug 22/2019 00:01,12.62V,,Aug 23/2019 00:01,12.44V,,Aug 24/2019 00:01,12.60V,,Aug 25/2019 00:01,13.50V,,Aug 26/2019 00:01,12.49V,,Aug 27/2019 00:01,12.36V,,Aug 28/2019 00:01,12.45V,,Aug 29/2019 00:01,12.36V,,Aug 30/2019 00:01,12.39V,,Aug 31/2019 00:01,12.42V&lt;/P&gt;</description>
      <pubDate>Sun, 08 Sep 2019 05:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478203#M82088</guid>
      <dc:creator>jmeager_splunk</dc:creator>
      <dc:date>2019-09-08T05:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV data, multiple events on single line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478204#M82089</link>
      <description>&lt;P&gt;In fact you can do it with this props.conf&lt;BR /&gt;
LINE_BREAKER to split by two commas OR by line break&lt;BR /&gt;
PREAMBLE_REGEX to remove all headers&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[new_sourcetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=(,{2})|([\r\n]+)
NO_BINARY_CHECK=true
PREAMBLE_REGEX=Time.*
TIME_FORMAT=%b %d/%Y %H:%M
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478204#M82089</guid>
      <dc:creator>vgtk4431</dc:creator>
      <dc:date>2020-09-30T02:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV data, multiple events on single line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478205#M82090</link>
      <description>&lt;P&gt;The issues I'm finding is that the field delimiter value as a comma (required) conflicts with the line breaker double comma. The above still doesn't break the events, but puts one line's worth of events into a single event. I'm still trying.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 01:48:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478205#M82090</guid>
      <dc:creator>jmeager_splunk</dc:creator>
      <dc:date>2019-09-11T01:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV data, multiple events on single line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478206#M82091</link>
      <description>&lt;P&gt;I have been informed it's very unlikely that Splunk can make this happen with the comma clash. Recommendations to pre-process the data file monthly or bring in as it comes in into a temp index and do a collect function to bring into a new index, recommended a Metric index.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 02:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478206#M82091</guid>
      <dc:creator>jmeager_splunk</dc:creator>
      <dc:date>2019-09-11T02:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV data, multiple events on single line</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478207#M82092</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;Your sourcetype here&amp;gt;]
SHOULD_LINEMERGE = false
LINE_BREAKER = (,,|[\r\n]+)
TIME_PREFIX = ^
TIME_FORMAT = %b %d/%Y %H:%M
PREAMBLE_REGEX=Time.*
REPORT-commalist_delims = commalist
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[commalist]
DELIMS = ","
FIELDS = Time, Volt
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 19:53:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Import-CSV-data-multiple-events-on-single-line/m-p/478207#M82092</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-09-17T19:53:19Z</dc:date>
    </item>
  </channel>
</rss>

