<?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: no line breaks in CSV log file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405557#M71973</link>
    <description>&lt;P&gt;The indexer is doing the parsing of your events. So thats the right place for your props.conf &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Maybe reread this section: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Indexer/Howindexingworks"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Indexer/Howindexingworks&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 18:11:17 GMT</pubDate>
    <dc:creator>damann</dc:creator>
    <dc:date>2019-01-15T18:11:17Z</dc:date>
    <item>
      <title>no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405554#M71970</link>
      <description>&lt;P&gt;using splunk 7.2.1&lt;/P&gt;

&lt;P&gt;hello, Im ingesting an iotop I/O log thats in a csv format (using forwarder to send log to indexer)&lt;/P&gt;

&lt;P&gt;heres what the log looks like,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09:24:53, 1709, root, 59.43 K/s, 0.00 B/s, 0.06, 0.00, sshd:
09:24:54, 20152, root, 0.00 B/s, 11.88 K/s, 0.00, 0.00, splunkd-p8089
09:24:57, 168, root, 0.00 B/s, 27.75 K/s, 0.00, 0.08, 
09:25:01, 223, root, 932.67 K/s, 0.00 B/s, 0.16, 1.12, 
09:25:01, 389, root, 1095.39 K/s, 0.00 B/s, 0.27, 0.78, NetworkManager
09:25:01, 388, polkitd, 1543.86 K/s, 0.00 B/s, 0.11, 0.35, polkitd--no-debug
09:25:01, 1, root, 1928.83 K/s, 0.00 B/s, 0.24, 0.27, systemd--switched-root--system--deserialize
09:25:01, 365, root, 694.54 K/s, 0.00 B/s, 0.17, 0.21, 
09:25:01, 730, root, 388.94 K/s, 0.00 B/s, 0.04, 0.15, rsyslogd-n
09:25:01, 305, root, 130.97 K/s, 3.97 K/s, 0.00, 0.07, 
09:25:01, 366, dbus, 746.13 K/s, 0.00 B/s, 0.12, 0.06, dbus-daemon--system--address=systemd:--nofork--nopidfile
09:25:01, 731, root, 174.63 K/s, 7.94 K/s, 0.02, 0.06, rsyslogd-n[rs:main
09:25:01, 402, root, 464.35 K/s, 0.00 B/s, 0.64, 0.02, NetworkManager--no-daemon
09:25:01, 361, polkitd, 202.41 K/s, 0.00 B/s, 0.16, 0.01, polkitd
09:25:01, 396, root, 182.56 K/s, 0.00 B/s, 0.03, 0.01, crond
09:25:02, 1, root, 39.67 K/s, 0.00 B/s, 0.06, 0.00, systemd--switched-root--system--deserialize
09:25:02, 31444, root, 31.74 K/s, 0.00 B/s, 0.01, 0.00, sshd:
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In splunk, each event is counted as few consecutive lines, it never line breaks each event into a new event row,&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/264599-splunk2.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I tried playing around with /opt/splunkforwarder/etc/apps/myapp/local/props.conf&lt;/P&gt;

&lt;P&gt;added both regex and LINE_BREAKER but it doesnt line break this simple CSV log,&lt;/P&gt;

&lt;P&gt;[iotop]&lt;BR /&gt;
INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;
CHARSET = AUTO&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;

&lt;P&gt;Still cant get it to parse the log correctly. Am I missing something? THanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405554#M71970</guid>
      <dc:creator>qbadmin</dc:creator>
      <dc:date>2020-09-29T22:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405555#M71971</link>
      <description>&lt;P&gt;When i try to ingest your sample data i only see 1 problem:&lt;BR /&gt;
When you set &lt;CODE&gt;indexed_extractions = CSV&lt;/CODE&gt;splunk takes the first line in your file as a header for auto-field extraction.!&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.comstorage/temp/263634-csv.png"&gt;See this Screenshot&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 17:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405555#M71971</guid>
      <dc:creator>damann</dc:creator>
      <dc:date>2019-01-15T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405556#M71972</link>
      <description>&lt;P&gt;I removed that line, restarted the forwarder, but data still comes in bulked together,&lt;/P&gt;

&lt;P&gt;[iotop]&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
NO_BINARY_CHECK=true&lt;BR /&gt;
pulldown_type = 1&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405556#M71972</guid>
      <dc:creator>qbadmin</dc:creator>
      <dc:date>2020-09-29T22:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405557#M71973</link>
      <description>&lt;P&gt;The indexer is doing the parsing of your events. So thats the right place for your props.conf &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Maybe reread this section: &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Indexer/Howindexingworks"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Indexer/Howindexingworks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405557#M71973</guid>
      <dc:creator>damann</dc:creator>
      <dc:date>2019-01-15T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405558#M71974</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;INDEXED_EXTRACTIONS = CSV&lt;/CODE&gt; and you need in the &lt;CODE&gt;csv&lt;/CODE&gt; file a new line with the &lt;CODE&gt;csv&lt;/CODE&gt; field names. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405558#M71974</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-01-15T18:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405559#M71975</link>
      <description>&lt;P&gt;In this case, the best is to upload it manually and use the predefined &lt;CODE&gt;csv&lt;/CODE&gt; sourcetype. Like this you see the process -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6381iD390B4AE088E279B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405559#M71975</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-01-15T18:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405560#M71976</link>
      <description>&lt;P&gt;What is the version of your Splunk? &lt;/P&gt;

&lt;P&gt;I am using 7.1.1 and when I manually upload the file, there is an option to break the events at every line. This happens at the "Set Source Type" page.&lt;/P&gt;

&lt;P&gt;Give a try.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 01:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405560#M71976</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2019-01-16T01:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: no line breaks in CSV log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405561#M71977</link>
      <description>&lt;P&gt;I ran an error check &lt;/P&gt;

&lt;P&gt;index="_internal" log_level=WARN OR log_level=ERROR&lt;/P&gt;

&lt;P&gt;and turns out it was spitting out errors about failed parsing of timestamp,&lt;/P&gt;

&lt;P&gt;I fixed it by adding a props.conf to my indexers /opt/splunk/etc/system/local/props.conf, restart splunk master, and events are coming in ok now.&lt;/P&gt;

&lt;P&gt;DATETIME_CONFIG=CURRENT&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iotop]
LINE_BREAKER=([\r\n]+)
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
DATETIME_CONFIG=CURRENT
#pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/264616-splunk5.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/no-line-breaks-in-CSV-log-file/m-p/405561#M71977</guid>
      <dc:creator>qbadmin</dc:creator>
      <dc:date>2020-09-29T22:47:51Z</dc:date>
    </item>
  </channel>
</rss>

