<?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: Line breaks within a CSV field. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaks-within-a-CSV-field/m-p/156690#M31763</link>
    <description>&lt;P&gt;If this is a DOS format text file, you should be able break on CR-LF line breaks with LINE_BREAKER (in props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
LINE_BREAKER=(\r\n)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Jan 2014 18:40:24 GMT</pubDate>
    <dc:creator>mrsprague</dc:creator>
    <dc:date>2014-01-24T18:40:24Z</dc:date>
    <item>
      <title>Line breaks within a CSV field.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaks-within-a-CSV-field/m-p/156688#M31761</link>
      <description>&lt;P&gt;I have a .csv file with several fields. there are many date fields and text fields, but fields are long blobs of text (such as the body of an e-mail) lets call such a field "longtext".  The problem is that whenever Splunk encounters a newline character in the longtext field, it interprets it as a line break which throws off the event breaks.&lt;/P&gt;

&lt;P&gt;How can I get all of the text in "longtext" to be properly indexed without Splunk interpreting the newline as a line break?&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;create_time,request_id,username,longtext,responded_time,closed_time
2013-11-23 11:00,2322,johnsmith,Here is the long blob of text I was talking about. If i have a newline here: &amp;lt;newline&amp;gt; 
Splunk sees it as a break in the log file and doesn't place the rest of this text in the longtext field,2013-11-23 13:43,2013-11-23 14:05
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaks-within-a-CSV-field/m-p/156688#M31761</guid>
      <dc:creator>ocallender</dc:creator>
      <dc:date>2013-11-26T17:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaks within a CSV field.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaks-within-a-CSV-field/m-p/156689#M31762</link>
      <description>&lt;P&gt;Following seems to be working for me, for the sample data you have given (to be added in props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
INDEXED_EXTRACTIONS = csv
KV_MODE = none
MAX_TIMESTAMP_LOOKAHEAD = 50
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = true
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2013 22:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaks-within-a-CSV-field/m-p/156689#M31762</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-26T22:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Line breaks within a CSV field.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Line-breaks-within-a-CSV-field/m-p/156690#M31763</link>
      <description>&lt;P&gt;If this is a DOS format text file, you should be able break on CR-LF line breaks with LINE_BREAKER (in props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
LINE_BREAKER=(\r\n)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jan 2014 18:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Line-breaks-within-a-CSV-field/m-p/156690#M31763</guid>
      <dc:creator>mrsprague</dc:creator>
      <dc:date>2014-01-24T18:40:24Z</dc:date>
    </item>
  </channel>
</rss>

