<?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: How to break a multi-line event with regex, provided that the date and time containing the milliseconds changes only at the beginning of the line. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485734#M135909</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;How can I besides the comma also include the period?&lt;/P&gt;

&lt;P&gt;Ex:&lt;BR /&gt;
    2019-11-18T10:44:31,949 Trc 21126 [SvcSrvW-39 ] &amp;lt;[33489584]&amp;gt; 'OMInteractions.GetInteractionContent' (request id 33489584) handling duration : 94 ms.&lt;BR /&gt;
    2019-11-18T10:44:31,949 Trc 21133 [SvcSrvW-38 ] &amp;lt;[122907, txn-18478985, txn-18478985, txn-18478985]&amp;gt; Updating persistent object '000QPaEVQX5MWUQV' from class 'com.genesyslab.icc.api.contactserver.persistent.IndexEvent'.&lt;BR /&gt;
    2019-11-18T10:44:31,949 Dbg 09900 [SvcSrvW-38 ] &amp;lt;[122907, txn-18478985, txn-18478985, txn-18478985]&amp;gt; Executing request: update IndexEvent set IndexEvent.IndexName=?, IndexEvent.ProcessedPri=?, IndexEvent.EventDate=?, IndexEvent.ProcessedBck=?, IndexEvent.Operation=? where (IndexEvent.Id = ?) in transaction : 422961818@txn-txn-18478985 with timeout=15&lt;BR /&gt;
    2019-11-18T10:44:31,949 Dbg 09900 [SvcSrvW-25 ] &amp;lt;[33489586, txn-18478990, txn-18478990]&amp;gt; Getting ResultSetMetaData&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2019-11-12T09:51:58.353&lt;/STRONG&gt; OR &lt;STRONG&gt;2019-11-18T10:44:31,949&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2019 14:48:22 GMT</pubDate>
    <dc:creator>leandromatperei</dc:creator>
    <dc:date>2019-11-18T14:48:22Z</dc:date>
    <item>
      <title>How to break a multi-line event with regex, provided that the date and time containing the milliseconds changes only at the beginning of the line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485731#M135906</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have the following log format,&lt;BR /&gt;
How can I break this multiline event, with the condition if the date is changed only when the date containing time is at the beginning of the line.&lt;/P&gt;

&lt;P&gt;Example: 2019-11-12T12: 51: 28.338&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-11-12T09:51:28.291 Dbg 23058 [MsgIn] Ended defined Clients :
2019-11-12T09:51:28.338 Dbg 23055 [MsgIn]     None.
2019-11-12T09:51:28.338 Dbg 23056 [MsgIn] Scheduled Clients :
2019-11-12T09:51:28.338 Dbg 23055 [MsgIn]     None.
2019-11-12T09:51:36.154 Trc 29998 [PSDK.Timer] 
-AP[8802]-&amp;gt;-65331 @09:51:36.0154
2019-11-12T09:51:36.154 Trc 29998 [O worker #4] 
-Ap[8802]-&amp;lt;-65331 @09:51:36.0154
2019-11-12T09:51:51.145 Trc 29998 [PSDK.Timer] 
-AP[4563]-&amp;gt;-58089 @09:51:51.0145
2019-11-12T09:51:51.145 Trc 29998 [O worker #4] 
-Ap[4563]-&amp;lt;-58089 @09:51:51.0145
2019-11-12T09:51:53.657 Trc 29998 [PSDK.Timer] 
-AP[5040]-&amp;gt;-59427 @09:51:53.0657
2019-11-12T09:51:53.657 Trc 29998 [O worker #3] 
-Ap[5040]-&amp;lt;-59427 @09:51:53.0657
Timezone UTC offset:        03:00:00
UTC Start Time:         2019-11-09T05:25:11.154
Running Time (DDD:HH:MM:SS):    003:07:26:17
UTC Time:           2019-11-12T12:51:28.338

2019-11-12T09:51:58.353 Dbg 23053 [MsgIn] Clients defined in ConfigServer :
-Ap[4564]-&amp;lt;-58089 @09:52:21.0160
2019-11-12T09:52:28.367 Dbg 23053 [MsgIn] Clients defined in ConfigServer :
2019-11-12T09:52:28.367 Dbg 23054 [MsgIn]     &amp;lt;pop-client PROD545454&amp;gt; enabled.
2019-11-12T09:52:28.367 Dbg 23054 [MsgIn]     &amp;lt;pop-client PROD545454&amp;gt; enabled.
2019-11-12T09:52:28.367 Dbg 23054 [MsgIn]     &amp;lt;pop-client PROD545454&amp;gt; enabled.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 12:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485731#M135906</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2019-11-15T12:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to break a multi-line event with regex, provided that the date and time containing the milliseconds changes only at the beginning of the line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485732#M135907</link>
      <description>&lt;P&gt;Try these props.conf settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
LINE_BREAKER = ([\r\n]+)\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d{3}
TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%dT%H%:M%:S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 13:02:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485732#M135907</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-15T13:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to break a multi-line event with regex, provided that the date and time containing the milliseconds changes only at the beginning of the line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485733#M135908</link>
      <description>&lt;P&gt;thanks, &lt;/P&gt;

&lt;P&gt;And for the pattern below, what should the time format be?  "2019-11-18T10:44:31,949"&lt;/P&gt;

&lt;P&gt;2019-11-18T10:44:31,949 Trc 21126 [SvcSrvW-39 ] &amp;lt;[33489584]&amp;gt; 'OMInteractions.GetInteractionContent' (request id 33489584) handling duration : 94 ms.&lt;BR /&gt;
    2019-11-18T10:44:31,949 Trc 21133 [SvcSrvW-38 ] &amp;lt;[122907, txn-18478985, txn-18478985, txn-18478985]&amp;gt; Updating persistent object '000QPaEVQX5MWUQV' from class 'com.genesyslab.icc.api.contactserver.persistent.IndexEvent'.&lt;BR /&gt;
    2019-11-18T10:44:31,949 Dbg 09900 [SvcSrvW-38 ] &amp;lt;[122907, txn-18478985, txn-18478985, txn-18478985]&amp;gt; Executing reque&lt;/P&gt;

&lt;P&gt;How can I besides the comma include the dot in timeformat?&lt;/P&gt;

&lt;P&gt;2019-11-12T09:51:53.657 OR 2019-11-18T10:44:31,949&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 14:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485733#M135908</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2019-11-18T14:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to break a multi-line event with regex, provided that the date and time containing the milliseconds changes only at the beginning of the line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485734#M135909</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;How can I besides the comma also include the period?&lt;/P&gt;

&lt;P&gt;Ex:&lt;BR /&gt;
    2019-11-18T10:44:31,949 Trc 21126 [SvcSrvW-39 ] &amp;lt;[33489584]&amp;gt; 'OMInteractions.GetInteractionContent' (request id 33489584) handling duration : 94 ms.&lt;BR /&gt;
    2019-11-18T10:44:31,949 Trc 21133 [SvcSrvW-38 ] &amp;lt;[122907, txn-18478985, txn-18478985, txn-18478985]&amp;gt; Updating persistent object '000QPaEVQX5MWUQV' from class 'com.genesyslab.icc.api.contactserver.persistent.IndexEvent'.&lt;BR /&gt;
    2019-11-18T10:44:31,949 Dbg 09900 [SvcSrvW-38 ] &amp;lt;[122907, txn-18478985, txn-18478985, txn-18478985]&amp;gt; Executing request: update IndexEvent set IndexEvent.IndexName=?, IndexEvent.ProcessedPri=?, IndexEvent.EventDate=?, IndexEvent.ProcessedBck=?, IndexEvent.Operation=? where (IndexEvent.Id = ?) in transaction : 422961818@txn-txn-18478985 with timeout=15&lt;BR /&gt;
    2019-11-18T10:44:31,949 Dbg 09900 [SvcSrvW-25 ] &amp;lt;[33489586, txn-18478990, txn-18478990]&amp;gt; Getting ResultSetMetaData&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2019-11-12T09:51:58.353&lt;/STRONG&gt; OR &lt;STRONG&gt;2019-11-18T10:44:31,949&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 14:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485734#M135909</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2019-11-18T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to break a multi-line event with regex, provided that the date and time containing the milliseconds changes only at the beginning of the line.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485735#M135910</link>
      <description>&lt;P&gt;The TIME_FORMAT setting for times using comma would be &lt;CODE&gt;%Y-%m-%dT%H%:M%:S,%3N&lt;/CODE&gt;.  One cannot specify alternatives in TIME_FORMAT.  To support variations in time strings. edit the DATETIME.XML file.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-break-a-multi-line-event-with-regex-provided-that-the/m-p/485735#M135910</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T03:01:07Z</dc:date>
    </item>
  </channel>
</rss>

