<?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 configure line breaking for a CSV file where line breaks are signified by a semicolon? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286611#M54726</link>
    <description>&lt;P&gt;Hi everyone,  &lt;/P&gt;

&lt;P&gt;I have a CSV file where the line breaks are signified by a semicolon &lt;CODE&gt;;&lt;/CODE&gt;. I am wondering how one would parse this CSV with the "line break" being a different character.  Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Number, Score;  1 , 44.5678690273 ;11 , 60.0795233081 ;  14 , 13.6359924845 ;  16 , 44.6169376811 ;  17 , 47.6782506507 ; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HEADER_FIELD_LINE_NUMBER=1
FIELD_NAMES=Number, Score
BREAK_ONLY_BEFORE=;
CHARSET=AUTO
INDEXED_EXTRACTIONS=csv
KV_MODE=none
LINE_BREAK=;
MUST_BREAK_AFTER=;
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, it does not break the events at the semicolons.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2016 14:48:24 GMT</pubDate>
    <dc:creator>dablackgoku1234</dc:creator>
    <dc:date>2016-06-03T14:48:24Z</dc:date>
    <item>
      <title>How to configure line breaking for a CSV file where line breaks are signified by a semicolon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286611#M54726</link>
      <description>&lt;P&gt;Hi everyone,  &lt;/P&gt;

&lt;P&gt;I have a CSV file where the line breaks are signified by a semicolon &lt;CODE&gt;;&lt;/CODE&gt;. I am wondering how one would parse this CSV with the "line break" being a different character.  Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Number, Score;  1 , 44.5678690273 ;11 , 60.0795233081 ;  14 , 13.6359924845 ;  16 , 44.6169376811 ;  17 , 47.6782506507 ; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HEADER_FIELD_LINE_NUMBER=1
FIELD_NAMES=Number, Score
BREAK_ONLY_BEFORE=;
CHARSET=AUTO
INDEXED_EXTRACTIONS=csv
KV_MODE=none
LINE_BREAK=;
MUST_BREAK_AFTER=;
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, it does not break the events at the semicolons.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 14:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286611#M54726</guid>
      <dc:creator>dablackgoku1234</dc:creator>
      <dc:date>2016-06-03T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure line breaking for a CSV file where line breaks are signified by a semicolon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286612#M54727</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; CHARSET=AUTO
 INDEXED_EXTRACTIONS=csv
 KV_MODE=none
 SHOULD_LINEMERGE=false
 LINE_BREAKER=;
 NO_BINARY_CHECK=true
 pulldown_type=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure this props.conf is at the source of the data such as the forwarder.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 15:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286612#M54727</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-06-03T15:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure line breaking for a CSV file where line breaks are signified by a semicolon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286613#M54728</link>
      <description>&lt;P&gt;Without specifying the FIELD_NAMES, I get a  &lt;CODE&gt;No results found. Please change source type, adjust source type settings, or check your source file.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However, specifying FIELD_NAMES still does not parse the semicolons properly.  It would think  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Score; 1&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;44.5678690273 ;11&lt;/CODE&gt; &lt;BR /&gt;
&lt;CODE&gt;60.0795233081 ; 14&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;are field values.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 15:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286613#M54728</guid>
      <dc:creator>dablackgoku1234</dc:creator>
      <dc:date>2016-06-03T15:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure line breaking for a CSV file where line breaks are signified by a semicolon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286614#M54729</link>
      <description>&lt;P&gt;Did you change line break to line breaker?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286614#M54729</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-06-03T17:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure line breaking for a CSV file where line breaks are signified by a semicolon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286615#M54730</link>
      <description>&lt;P&gt;Maybe try a&lt;BR /&gt;
       SEDCMD-semicolon="s/;/\n\r/g"&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 17:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286615#M54730</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-06-03T17:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure line breaking for a CSV file where line breaks are signified by a semicolon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286616#M54731</link>
      <description>&lt;P&gt;Adding SEDCMD-semicolon="s/;/\n\r/g" did not change the result.  Do I need to do anything special to enable SEDCMD?&lt;/P&gt;

&lt;P&gt;I've added the line to my props.conf file.  I've also tried SEDCMD-replace=s/;/\r\n/g and the results are the same.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 15:15:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286616#M54731</guid>
      <dc:creator>dablackgoku1234</dc:creator>
      <dc:date>2016-06-06T15:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure line breaking for a CSV file where line breaks are signified by a semicolon?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286617#M54732</link>
      <description>&lt;P&gt;I believe the indexed_extractions is overriding the sedcmd, and line_breaker.&lt;/P&gt;

&lt;P&gt;You will probably have to disable indexed_extractions and use EXTRACT-name to extract the values to field names, and then discard the header with sedcmd&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER=;
SEDCMD-headerRemoval = s/Number\s+\,\s+Score//g
EXTRACT-fields = ^(?&amp;lt;Number&amp;gt;\d+)\s+\,\s+(?&amp;lt;Score&amp;gt;\d+\.\d+|\d+)  #gets whole integers and factions
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-line-breaking-for-a-CSV-file-where-line-breaks/m-p/286617#M54732</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T09:51:42Z</dc:date>
    </item>
  </channel>
</rss>

