<?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 can I break up one long line into multiple events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-break-up-one-long-line-into-multiple-events/m-p/292325#M55690</link>
    <description>&lt;P&gt;I have a file that contains one really long line, see below&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
["2017-10-09 13:05",976.0,"OK"],["2017-10-09 13:06",908.0,"OK"],["2017-10-09 13:07",1001.0,"OK"] ...... And so on..&lt;/P&gt;

&lt;P&gt;How can I break up each ["2017-10-09 13:05",976.0,"OK"] into events?&lt;/P&gt;

&lt;P&gt;I first tried to accomplish this in props.conf with no luck.&lt;BR /&gt;
So now Im adding the file using "upload file" just to see if I can breake the line, still with no luck..&lt;/P&gt;

&lt;P&gt;Any pointers would be much appriciated&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 09:13:26 GMT</pubDate>
    <dc:creator>snorri</dc:creator>
    <dc:date>2017-10-10T09:13:26Z</dc:date>
    <item>
      <title>How can I break up one long line into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-break-up-one-long-line-into-multiple-events/m-p/292325#M55690</link>
      <description>&lt;P&gt;I have a file that contains one really long line, see below&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
["2017-10-09 13:05",976.0,"OK"],["2017-10-09 13:06",908.0,"OK"],["2017-10-09 13:07",1001.0,"OK"] ...... And so on..&lt;/P&gt;

&lt;P&gt;How can I break up each ["2017-10-09 13:05",976.0,"OK"] into events?&lt;/P&gt;

&lt;P&gt;I first tried to accomplish this in props.conf with no luck.&lt;BR /&gt;
So now Im adding the file using "upload file" just to see if I can breake the line, still with no luck..&lt;/P&gt;

&lt;P&gt;Any pointers would be much appriciated&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 09:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-break-up-one-long-line-into-multiple-events/m-p/292325#M55690</guid>
      <dc:creator>snorri</dc:creator>
      <dc:date>2017-10-10T09:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break up one long line into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-break-up-one-long-line-into-multiple-events/m-p/292326#M55691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;what did you try to do in your props.conf?&lt;BR /&gt;
What you are looking for is the BREAK_ONLY_BEFORE (or MUST_BREAK_AFTER) setting.&lt;BR /&gt;
I would go with somethign like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype (defined in inputs.conf)]
MUST_BREAK_AFTER = (\"\]\,)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, your event gets broken after the comma.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-break-up-one-long-line-into-multiple-events/m-p/292326#M55691</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2020-09-29T16:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I break up one long line into multiple events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-break-up-one-long-line-into-multiple-events/m-p/292327#M55692</link>
      <description>&lt;P&gt;in props.conf you should be able to configure line breaking. a regex of something like &lt;CODE&gt;LINE_BREAKER=\]([,])&lt;/CODE&gt;might do the trick. &lt;/P&gt;

&lt;P&gt;you can also do this via the UI. Just go to Add Data&amp;gt;Monitor/Upload/Forward. Eventually, you'll get to the Set Sourcetype stage and you can configure the event breaks there. you can see where/how the events are going to break and adjust accordingly. &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Data/Modifyeventprocessing"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Data/Modifyeventprocessing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-break-up-one-long-line-into-multiple-events/m-p/292327#M55692</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-10-10T12:17:25Z</dc:date>
    </item>
  </channel>
</rss>

