<?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 Splitting Events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-Events/m-p/77480#M15864</link>
    <description>&lt;P&gt;I am trying to configure Splunk to properly split events from a data source. Here's what an event looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;----------------------------------------
Timestamp: 2/20/2012 3:30:44 PM
&amp;lt;log details&amp;gt;
----------------------------------------
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Each event begins and ends with dashes. The time stamp is always on the line after the initial dashes.&lt;/P&gt;

&lt;P&gt;Here's what I have tried (none of which work):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
LINE_BREAKER = ----------------------------------------([\n\r]+)Timestamp:\s\d{1,2}/\d{1,2}/\d{4}\s\d{1,2}:\d{2}:\d{2}\s[A|P]M
SHOULD_LINEMERGE = false
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 80

[sourcetype]
LINE_BREAKER = ([\n\r]+)Timestamp\s*:\s\d{1,2}/\d{1,2}/\d{4}\s\d{1,2}:\d{2}:\d{2}\s[A|P]M
TIME_PREFIX = Timestamp\s*:\s*
SHOULD_LINEMERGE = false
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 35

[sourcetype]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = ----------------------------------------[\n\r]+Timestamp\s*:\s*\d{1,2}\/\d{1,2}\/\d{4}\s*\d{1,2}:\d{1,2}:\d{1,2}\s*[A|P]M
TIME_PREFIX = Timestamp\s*:\s*
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 35

SHOULD_LINEMERGE=false
LINE_BREAKER=----------------------------------------[\n\r]+Timestamp\s*:
TIME_PREFIX=Timestamp\s*:\s*
TIME_FORMAT=%m/%d/%Y %r
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I missing?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2012 20:15:44 GMT</pubDate>
    <dc:creator>johnboldt</dc:creator>
    <dc:date>2012-02-23T20:15:44Z</dc:date>
    <item>
      <title>Splitting Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-Events/m-p/77480#M15864</link>
      <description>&lt;P&gt;I am trying to configure Splunk to properly split events from a data source. Here's what an event looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;----------------------------------------
Timestamp: 2/20/2012 3:30:44 PM
&amp;lt;log details&amp;gt;
----------------------------------------
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Each event begins and ends with dashes. The time stamp is always on the line after the initial dashes.&lt;/P&gt;

&lt;P&gt;Here's what I have tried (none of which work):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
LINE_BREAKER = ----------------------------------------([\n\r]+)Timestamp:\s\d{1,2}/\d{1,2}/\d{4}\s\d{1,2}:\d{2}:\d{2}\s[A|P]M
SHOULD_LINEMERGE = false
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 80

[sourcetype]
LINE_BREAKER = ([\n\r]+)Timestamp\s*:\s\d{1,2}/\d{1,2}/\d{4}\s\d{1,2}:\d{2}:\d{2}\s[A|P]M
TIME_PREFIX = Timestamp\s*:\s*
SHOULD_LINEMERGE = false
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 35

[sourcetype]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = ----------------------------------------[\n\r]+Timestamp\s*:\s*\d{1,2}\/\d{1,2}\/\d{4}\s*\d{1,2}:\d{1,2}:\d{1,2}\s*[A|P]M
TIME_PREFIX = Timestamp\s*:\s*
MAX_EVENTS = 10000
MAX_TIMESTAMP_LOOKAHEAD = 35

SHOULD_LINEMERGE=false
LINE_BREAKER=----------------------------------------[\n\r]+Timestamp\s*:
TIME_PREFIX=Timestamp\s*:\s*
TIME_FORMAT=%m/%d/%Y %r
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2012 20:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-Events/m-p/77480#M15864</guid>
      <dc:creator>johnboldt</dc:creator>
      <dc:date>2012-02-23T20:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splitting-Events/m-p/77481#M15865</link>
      <description>&lt;P&gt;Give this a try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = \-+([\n\r])Timestamp:\s+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it doesn't help, you may want to check splunkd.log for errors related to this line breaking failing. You could also check btool to ensure that the configuration is being read, run &lt;CODE&gt;'splunk cmd btool props list --debug &amp;gt; ~/output&lt;/CODE&gt; from $SPLUNK_HOME/bin/. I presume that all events carry the sourcetype you've specified in the 'sourcetype' metadata field? &lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2012 20:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splitting-Events/m-p/77481#M15865</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-02-23T20:34:40Z</dc:date>
    </item>
  </channel>
</rss>

