<?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: Need some help with event breaks in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369949#M67143</link>
    <description>&lt;P&gt;Give this a try as well&lt;/P&gt;

&lt;P&gt;props.conf on Indexer/Heavy Forwarder, whichever comes first in data flow.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourceTypeHere]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
LINE_BREAKER=([\r\n]+)(?=\&amp;lt;\!\[LOG\[)
TIME_PREFIX=time=\"
TIME_FORMAT=%H:%M:%S.%3N%:::z" date="%m-%d-%Y
MAX_TIMESTAMP_LOOKAHEAD=33
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Nov 2017 16:52:21 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-11-14T16:52:21Z</dc:date>
    <item>
      <title>Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369944#M67138</link>
      <description>&lt;P&gt;Hi all, &lt;BR /&gt;
I was hoping someone might be able to point me in the right direction for where to set this and how exactly to set it:&lt;BR /&gt;
I'm consuming some logs from SCCM (log sample below for reference) and they have a distinct pattern for events and event breaks. I know that the regex that i would come up with is supposed to go into either props.conf or transforms.conf but I don't know which.&lt;/P&gt;

&lt;P&gt;Sample events:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;![LOG[Active enforcement task with MTC Id a1c5be10-73fe-4d8a-b745-862c63a44faf not found]LOG]!&amp;gt;&amp;lt;time="18:31:43.760+00" date="11-12-2017" component="CITaskMgr" context="" type="1" thread="37360" file="ccitaskmgr.cpp:1054"&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;![LOG[Release task Enforce for CI ScopeId_7FFCE0E9-58B7-4E0C-8322-5704CF6E0B26/DeploymentType_bbb6820e-f332-4550-91a6-12344b4ed081.3 for target: , consumer {3FC6019A-45DB-4D07-9F1D-E19A7F509482}]LOG]!&amp;gt;&amp;lt;time="18:31:43.838+00" date="11-12-2017" component="CITaskMgr" context="" type="1" thread="30416" file="ccitaskmgr.cpp:405"&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;![LOG[Release task Enforce for CI ScopeId_7FFCE0E9-58B7-4E0C-8322-5704CF6E0B26/Application_63222d92-85cb-40bd-850a-1f1264d1302c.3 for target: , consumer {E6682089-51BE-4F27-A576-753A8D2B5EF8}]LOG]!&amp;gt;&amp;lt;time="18:31:43.838+00" date="11-12-2017" component="CITaskMgr" context="" type="1" thread="30416" file="ccitaskmgr.cpp:405"&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;![LOG[Release task Enforce for CI ScopeId_7FFCE0E9-58B7-4E0C-8322-5704CF6E0B26/RequiredApplication_63222d92-85cb-40bd-850a-1f1264d1302c.3 for target: , consumer {901FBA32-A63D-4172-94FA-5C31054BF474}]LOG]!&amp;gt;&amp;lt;time="18:31:43.838+00" date="11-12-2017" component="CITaskMgr" context="" type="1" thread="30416" file="ccitaskmgr.cpp:405"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;As you can see from the sample above:&lt;BR /&gt;
Each event "header" starts with &lt;CODE&gt;&amp;lt;![LOG[&lt;/CODE&gt; and ends with &lt;CODE&gt;]LOG]!&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
Each event "detail" starts with &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and ends with &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; and is always preceded by the "header" before it.&lt;/P&gt;

&lt;P&gt;So effectively, it's &lt;CODE&gt;&amp;lt;![LOG[headerhere]LOG]!&amp;gt;&amp;lt;detailhere&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;My thought was to do a single event as &lt;CODE&gt;&amp;lt;![LOG[headerhere]LOG]!&amp;gt;&amp;lt;detailhere&amp;gt;&lt;/CODE&gt; and from there I could do field extractions for the "header text" and each part of the detail (where something=somethingelse).&lt;/P&gt;

&lt;P&gt;Assuming I do the field extractions within splunk instead of props.conf/transforms.conf (best practice now), how should I do the event break?&lt;/P&gt;

&lt;P&gt;Should I do something where "the end of every event is &lt;CODE&gt;"&amp;gt;&lt;/CODE&gt; " and set that as the props.conf &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; ?&lt;BR /&gt;
Are there any other considerations that I should be aware of, such as &lt;CODE&gt;SHOULD_LINEMERGE&lt;/CODE&gt; or other things?&lt;/P&gt;

&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 15:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369944#M67138</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2017-11-14T15:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369945#M67139</link>
      <description>&lt;P&gt;For reference, the REGEX that I had in mind was:&lt;BR /&gt;
&lt;CODE&gt;"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 15:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369945#M67139</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2017-11-14T15:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369946#M67140</link>
      <description>&lt;P&gt;Hi @Lazarix,&lt;/P&gt;

&lt;P&gt;Based on your sample data, it looks like you need break event when &lt;CODE&gt;&amp;lt;!&lt;/CODE&gt; comes in data In that case you can below configuration in props.conf on your Indexer or Heavy Forwarder whichever comes first.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YOUR_SOURCETYPE]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\&amp;lt;\!
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to capture timestamp then you can use below config in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YOUR_SOURCETYPE]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\&amp;lt;\!
TIME_FORMAT=%H:%M:%S.%3N
TIME_PREFIX=&amp;lt;time="
MAX_TIMESTAMP_LOOKAHEAD=12
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2017 15:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369946#M67140</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-11-14T15:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369947#M67141</link>
      <description>&lt;P&gt;Thanks!!&lt;BR /&gt;
I'll give this a try now, wait for some events and let you know&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 15:38:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369947#M67141</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2017-11-14T15:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369948#M67142</link>
      <description>&lt;P&gt;It's not quite working &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.imgur.com/JxaavDG.png" alt="Img" /&gt;&lt;/P&gt;

&lt;P&gt;my props.conf is:&lt;BR /&gt;
    [sccm]&lt;BR /&gt;
    SHOULD_LINEMERGE=true&lt;BR /&gt;
    NO_BINARY_CHECK=true&lt;BR /&gt;
    BREAK_ONLY_BEFORE=&amp;lt;!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369948#M67142</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2020-09-29T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369949#M67143</link>
      <description>&lt;P&gt;Give this a try as well&lt;/P&gt;

&lt;P&gt;props.conf on Indexer/Heavy Forwarder, whichever comes first in data flow.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourceTypeHere]
SHOULD_LINEMERGE=false
NO_BINARY_CHECK=true
LINE_BREAKER=([\r\n]+)(?=\&amp;lt;\!\[LOG\[)
TIME_PREFIX=time=\"
TIME_FORMAT=%H:%M:%S.%3N%:::z" date="%m-%d-%Y
MAX_TIMESTAMP_LOOKAHEAD=33
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2017 16:52:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369949#M67143</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-14T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369950#M67144</link>
      <description>&lt;P&gt;Same issue as above when I try this config &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I wish it were possible to specify the beginning and the end of the event instead&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 17:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369950#M67144</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2017-11-14T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369951#M67145</link>
      <description>&lt;P&gt;Does your log entries appear in separate lines or they are merged into big lines?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 18:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369951#M67145</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-11-14T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369952#M67146</link>
      <description>&lt;P&gt;&lt;A href="https://i.imgur.com/ufsAGkE.png"&gt;https://i.imgur.com/ufsAGkE.png&lt;/A&gt;&lt;BR /&gt;
The common denominator is the fact that the "event break" as opposed to the "line break" (one would assume that they mean the same thing in this case) should always begin with &lt;CODE&gt;&amp;lt;![LOG&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;In the screenshot you will see:&lt;BR /&gt;
An event being correctly identified&lt;BR /&gt;
An event being split before &lt;CODE&gt;]LOG]!&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
Two events in the same event&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 08:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369952#M67146</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2017-11-15T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369953#M67147</link>
      <description>&lt;P&gt;I've modified the regex slightly to remove the CRLF (technically it may miss the first event as it doesn't preceed a CRLF) and the pattern in a regex tester is matching correctly, but still exhibits the same behaviour:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.regextester.com/?fam=99529"&gt;https://www.regextester.com/?fam=99529&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 09:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369953#M67147</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2017-11-15T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with event breaks</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369954#M67148</link>
      <description>&lt;P&gt;Ok, I have modified my config slightly, can you please give this try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YOUR_SOURCETYPE]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
BREAK_ONLY_BEFORE=\&amp;lt;\!
TIME_FORMAT=%H:%M:%S.%3N%:::z" date="%m-%d-%Y
TIME_PREFIX=&amp;lt;time="
MAX_TIMESTAMP_LOOKAHEAD=33
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Because I have tried your sample data using Setting-&amp;gt;Add Data and while configuring above configuration splunk breaking events perfectly fine.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 09:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-some-help-with-event-breaks/m-p/369954#M67148</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-11-15T09:16:03Z</dc:date>
    </item>
  </channel>
</rss>

