<?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 timestamp date in header, time in every event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-date-in-header-time-in-every-event/m-p/433034#M75713</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a log that the date part of the timestamp for every event only comes in the header and footer. I am able to parse the header, but that gives the same timestamp to every event. &lt;BR /&gt;
Using a time_prefix: ([^,]+,){4} and the regex %H%M%S%2N  to parse the last value as the time, it sometimes says that it is unable to parse it to a strptime and other times it parses it ok, even using the date of the header.&lt;/P&gt;

&lt;P&gt;Log sample:&lt;/P&gt;

&lt;P&gt;20181214,092255&lt;BR /&gt;&lt;BR /&gt;
9688,P088,I,01001,09441963&lt;BR /&gt;&lt;BR /&gt;
9688,P088,O,01001,09441984&lt;BR /&gt;&lt;BR /&gt;
9689,P088,I,01001,09442063&lt;BR /&gt;&lt;BR /&gt;
9689,P088,O,01001,09442077&lt;BR /&gt;&lt;BR /&gt;
9706,P015,I,05001,09442099&lt;BR /&gt;&lt;BR /&gt;
20181214,175510               &lt;/P&gt;

&lt;P&gt;Any help in ensuring a proper timestamp parsing in every occasion will be highly appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 21:42:20 GMT</pubDate>
    <dc:creator>evidales</dc:creator>
    <dc:date>2019-04-26T21:42:20Z</dc:date>
    <item>
      <title>timestamp date in header, time in every event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-date-in-header-time-in-every-event/m-p/433034#M75713</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a log that the date part of the timestamp for every event only comes in the header and footer. I am able to parse the header, but that gives the same timestamp to every event. &lt;BR /&gt;
Using a time_prefix: ([^,]+,){4} and the regex %H%M%S%2N  to parse the last value as the time, it sometimes says that it is unable to parse it to a strptime and other times it parses it ok, even using the date of the header.&lt;/P&gt;

&lt;P&gt;Log sample:&lt;/P&gt;

&lt;P&gt;20181214,092255&lt;BR /&gt;&lt;BR /&gt;
9688,P088,I,01001,09441963&lt;BR /&gt;&lt;BR /&gt;
9688,P088,O,01001,09441984&lt;BR /&gt;&lt;BR /&gt;
9689,P088,I,01001,09442063&lt;BR /&gt;&lt;BR /&gt;
9689,P088,O,01001,09442077&lt;BR /&gt;&lt;BR /&gt;
9706,P015,I,05001,09442099&lt;BR /&gt;&lt;BR /&gt;
20181214,175510               &lt;/P&gt;

&lt;P&gt;Any help in ensuring a proper timestamp parsing in every occasion will be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 21:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-date-in-header-time-in-every-event/m-p/433034#M75713</guid>
      <dc:creator>evidales</dc:creator>
      <dc:date>2019-04-26T21:42:20Z</dc:date>
    </item>
  </channel>
</rss>

