<?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 help with event linebreaking and timestamp recognition in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290526#M55411</link>
    <description>&lt;P&gt;You can use a TIME_FORMAT of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %a %b %d %H:%M:%S %Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since the data is a long way into your event you will either have a complicated TIME_PREFIX or a large MAX_TIMESTAMP_LOOKAHEAD.&lt;BR /&gt;
Is the aim of the line breaker to never break the data ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = (nolinebreaksplease)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or does the start of the line with I mark a new line? Which seems strange but ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)I
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've made a few assumptions here as I'm unsure of exactly what your intentions are.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:12:29 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2020-09-29T16:12:29Z</dc:date>
    <item>
      <title>Need help with event linebreaking and timestamp recognition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290525#M55410</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;

&lt;P&gt;Please anyone help me to configure event linebreaking and timestamp recognition for below format logs.&lt;/P&gt;

&lt;P&gt;sample logs:&lt;/P&gt;

&lt;HR /&gt;

&lt;H2&gt;trc file: "dev_w0", trc level: 1, release: "742"&lt;/H2&gt;

&lt;P&gt;*&lt;BR /&gt;
*  ACTIVE TRACE LEVEL           1&lt;BR /&gt;
*  ACTIVE TRACE COMPONENTS      all, MJ&lt;BR /&gt;
*&lt;BR /&gt;
M sysno      00&lt;BR /&gt;
M sid        P05&lt;BR /&gt;
M systemid   390 (AMD/Intel x86_64 with Linux)&lt;BR /&gt;
M relno      7420&lt;BR /&gt;
M patchlevel 0&lt;BR /&gt;
M patchno    439&lt;BR /&gt;
M intno      20020600&lt;BR /&gt;
M make       multithreaded, Unicode, 64 bit, optimized&lt;BR /&gt;
M profile    /usr/sap/P05/SYS/profile/P05_D00_stp05a02&lt;BR /&gt;
M pid        3019&lt;BR /&gt;
M &lt;BR /&gt;
M&lt;BR /&gt;&lt;BR /&gt;
M Sun Sep 17 10:40:23 2017&lt;BR /&gt;
M  kernel runs with dp version 3000(ext=117000) (@(#) DPLIB-INT-VERSION-0+3000-UC)&lt;BR /&gt;
M  ***LOG Q01=&amp;gt; ThInit, WPStart (Workp. 0 1 3019) [thxxhead.c   1052]&lt;BR /&gt;
M&lt;BR /&gt;&lt;BR /&gt;
M Sun Sep 17 10:40:28 2017&lt;BR /&gt;
M  ThInit: running on host stp05a02&lt;BR /&gt;
I  MtxInit: 0 0 0&lt;BR /&gt;
M  calling db_connect ...&lt;BR /&gt;
B  Loading DB library '/usr/sap/P05/D00/exe/dboraslib.so' ...&lt;BR /&gt;
I  &lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER = &lt;BR /&gt;
TIME_PREFIX=&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=&lt;BR /&gt;
TIME_FORMAT=&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290525#M55410</guid>
      <dc:creator>lksridhar</dc:creator>
      <dc:date>2020-09-29T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with event linebreaking and timestamp recognition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290526#M55411</link>
      <description>&lt;P&gt;You can use a TIME_FORMAT of:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %a %b %d %H:%M:%S %Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since the data is a long way into your event you will either have a complicated TIME_PREFIX or a large MAX_TIMESTAMP_LOOKAHEAD.&lt;BR /&gt;
Is the aim of the line breaker to never break the data ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = (nolinebreaksplease)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or does the start of the line with I mark a new line? Which seems strange but ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)I
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've made a few assumptions here as I'm unsure of exactly what your intentions are.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290526#M55411</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-09-29T16:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with event linebreaking and timestamp recognition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290527#M55412</link>
      <description>&lt;P&gt;Thanks for the information,  my intentions is, i have an log file which don't have time stamp for first 19 lines and "getting the failed to parse timestamp and default to modftime" error on first row.&lt;/P&gt;

&lt;P&gt;The below configuration am using for.&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)(?:\w{1}\s\w{3}\s\w{3}\s\d{2}\s\d{2}:\d{2}:\d{2}\s\d{4})&lt;BR /&gt;
TIME_FORMAT = %a %b %d %H:%M:%S %Y&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290527#M55412</guid>
      <dc:creator>lksridhar</dc:creator>
      <dc:date>2020-09-29T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with event linebreaking and timestamp recognition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290528#M55413</link>
      <description>&lt;P&gt;TIME_PREFIX can work over multiple lines as per another answer &lt;A href="https://answers.splunk.com/answers/290137/how-to-extract-and-assign-a-timestamp-from-a-multi.html"&gt;here&lt;/A&gt;, I don't have a very nice solution but this might work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ([\r\n]+)(?=M (Sun|Mon|Tue|Wed|Thu|Fri|Sat) [A-Z])
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or perhaps something like this, although I have not tested it (assuming it's always on the next line):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ([^\n\r]+[\r\n]*){19}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Oct 2017 12:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290528#M55413</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-10-09T12:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with event linebreaking and timestamp recognition</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290529#M55414</link>
      <description>&lt;P&gt;I have tried the both and it is not working. still get the same error.&lt;BR /&gt;
r&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 14:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-with-event-linebreaking-and-timestamp-recognition/m-p/290529#M55414</guid>
      <dc:creator>lksridhar</dc:creator>
      <dc:date>2017-10-09T14:25:06Z</dc:date>
    </item>
  </channel>
</rss>

