<?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: Seperate One Event into Multiple Events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46734#M11174</link>
    <description>&lt;P&gt;Assuming that all events in the log file follow this format you should configure like so;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype_here]
SHOULD_LINEMERGE = false
TIME_PREFIX = :
TIME_FORMAT = %Y%m%d:%H%M%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt; implies that all events are single-line, and you should not need to specify any &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;MUST_NOT_BREAK_AFTER&lt;/CODE&gt; and similar &lt;CODE&gt;BREAK_ONLY_BEFORE...&lt;/CODE&gt; etc are only relevant when &lt;CODE&gt;SHOULD_LINEMERGE = true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2013 19:54:38 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-08-26T19:54:38Z</dc:date>
    <item>
      <title>Seperate One Event into Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46733#M11173</link>
      <description>&lt;P&gt;Need some help breaking an event out into multiple events.&lt;/P&gt;

&lt;P&gt;For example the following event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 7368:20130826:133019.286 status
 7368:20130826:133019.389 status
 7368:20130826:133019.414 status
 7368:20130826:133019.433 status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The format is pid:date/timestamp space status&lt;/P&gt;

&lt;P&gt;I have tried adding the following things to the indexer:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = (\d+:%Y%m%d:%H%M%S.%3N\s)([\r\n])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MUST_BREAK_AFTER = (\d+:%Y%m%d:%H%M%S.%3N\s)|([\r\n])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Neither of the above seems to have any effect either good or bad on the data even after restarting the service.&lt;/P&gt;

&lt;P&gt;What I want is everytime splunk encounters the above format of pid:date/timestamp it creates a new event.&lt;/P&gt;

&lt;P&gt;Splunk does seem to be matching the date/timestamps up correctly it just seems to lump all the events under the one event.&lt;/P&gt;

&lt;P&gt;Since I'm new to both splunk and regex expressions I'm not sure the best way to go about this.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46733#M11173</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2013-08-26T19:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate One Event into Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46734#M11174</link>
      <description>&lt;P&gt;Assuming that all events in the log file follow this format you should configure like so;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype_here]
SHOULD_LINEMERGE = false
TIME_PREFIX = :
TIME_FORMAT = %Y%m%d:%H%M%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt; implies that all events are single-line, and you should not need to specify any &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;MUST_NOT_BREAK_AFTER&lt;/CODE&gt; and similar &lt;CODE&gt;BREAK_ONLY_BEFORE...&lt;/CODE&gt; etc are only relevant when &lt;CODE&gt;SHOULD_LINEMERGE = true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46734#M11174</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-26T19:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate One Event into Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46735#M11175</link>
      <description>&lt;P&gt;Can this still be used if not all entries in the log file follow that format?&lt;/P&gt;

&lt;P&gt;There are some entries that do not have a clear date/time stamp. I am not as concerned that those get separated out properly as I am that every time splunk hits the above date/time stamp it creates a new event.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 20:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46735#M11175</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2013-08-26T20:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Seperate One Event into Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46736#M11176</link>
      <description>&lt;P&gt;This worked perfectly, thanks Kristian.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 14:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Seperate-One-Event-into-Multiple-Events/m-p/46736#M11176</guid>
      <dc:creator>sir_reel</dc:creator>
      <dc:date>2013-08-29T14:49:50Z</dc:date>
    </item>
  </channel>
</rss>

