<?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 do event linebreaking and timestamp recognition in header lines without timestamp information! in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352453#M64601</link>
    <description>&lt;P&gt;Considering your latest answer post, did this solution not work for you, or did you just decide you don't want to have the six header lines associated with the first event?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 02:07:02 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-02-08T02:07:02Z</dc:date>
    <item>
      <title>How to do event linebreaking and timestamp recognition in header lines without timestamp information!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352449#M64597</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;

&lt;P&gt;I am adding data from a log file with filename: server_zmslx1xt1119.log&lt;/P&gt;

&lt;P&gt;For the timestamp, first 7 lines does not have timestamp and fail to parse and default to filemod time instead of (20180123154844 or 01/23/18 3:48:44:000).&lt;BR /&gt;
I want splunk to pick up the timestamp for header fields from the line that have the timestamp (20180123154844)&lt;/P&gt;

&lt;P&gt;Please advice&lt;/P&gt;

&lt;P&gt;--------------------------------log file ------------------------&lt;BR /&gt;
McAfee ePO 5.3.1.296&lt;BR /&gt;
Server name: ZMSLX1XT1119 (zmslx1xt1119.xx.xxxx.xxxx.com.in)&lt;BR /&gt;
Platform: Server 6.2 &lt;BR /&gt;
Processors: 4&lt;BR /&gt;
Architecture: 64-bit&lt;BR /&gt;
Physical memory: 16383 MB&lt;BR /&gt;
20180123154844  I   #02828  NAIMSERV    PSO load: id=7298 ts=6480670&lt;BR /&gt;
20180123154844  I   #02828  NAIMSERV    PSO load: id=7299 ts=6480679&lt;BR /&gt;
20180123154844  I   #02828  NAIMSERV    PSO load: id=7300 ts=6480712&lt;BR /&gt;
20180123154844  I   #02828  NAIMSERV    PSO load: id=7301 ts=6480716&lt;BR /&gt;
20180123154844  I   #02828  NAIMSERV    PSO load: id=7302 ts=6480740&lt;BR /&gt;
20180123154844  I   #02828  NAIMSERV    PSO load: id=7303 ts=6480749&lt;BR /&gt;
20180123154844  I   #02828  NAIMSERV    PSO load: id=7304 ts=141092230&lt;BR /&gt;
--------------------------------log file ------------------------&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
smdasim&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 06:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352449#M64597</guid>
      <dc:creator>smdasim</dc:creator>
      <dc:date>2018-02-01T06:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to do event linebreaking and timestamp recognition in header lines without timestamp information!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352450#M64598</link>
      <description>&lt;P&gt;If each of the lines in your example are expected to represent individual events, there is no way for Splunk to use a timestamp seen in a later event to base its own timestamp off of.  If, however, you want to group the non-timestamped lines with the first timestamped line, this config will do that:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;sourcetype&amp;gt;]
SHOULD_LINEMERGE = false
LINE_BREAKER = ts=[0-9]+([\n\r]+)
MAX_TIMESTAMP_LOOKAHEAD = 250 
TIME_FORMAT = %Y%m%d%H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will group the non-timestamp lines with the first line that has a timestamp.&lt;/P&gt;

&lt;P&gt;You could also consider dropping the non-timestamped lines entirely, if they're not really needed.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 04:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352450#M64598</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-03T04:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to do event linebreaking and timestamp recognition in header lines without timestamp information!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352451#M64599</link>
      <description>&lt;P&gt;Hi Micahkemp,&lt;/P&gt;

&lt;P&gt;Can you please let me know more about the last line ,how it can be implemented .&lt;BR /&gt;
"you could have Splunk use the first instance of a timestamp it sees (based on a regex) be used for that event".As an option i can put first few lines into a single event with timestamp -20180123154844&lt;BR /&gt;
Thank you for your reply.&lt;BR /&gt;
Regards&lt;BR /&gt;
sdasim&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 12:12:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352451#M64599</guid>
      <dc:creator>smdasim</dc:creator>
      <dc:date>2018-02-03T12:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to do event linebreaking and timestamp recognition in header lines without timestamp information!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352452#M64600</link>
      <description>&lt;P&gt;Update my answer based on your comment.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 20:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352452#M64600</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-03T20:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to do event linebreaking and timestamp recognition in header lines without timestamp information!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352453#M64601</link>
      <description>&lt;P&gt;Considering your latest answer post, did this solution not work for you, or did you just decide you don't want to have the six header lines associated with the first event?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 02:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-do-event-linebreaking-and-timestamp-recognition-in-header/m-p/352453#M64601</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-08T02:07:02Z</dc:date>
    </item>
  </channel>
</rss>

