<?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 How to fix the timestamp for multiline  events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-the-timestamp-for-multiline-events/m-p/474751#M81533</link>
    <description>&lt;P&gt;Hi, Kindly help me out with to solve this question&lt;/P&gt;

&lt;P&gt;When I try to parse the log event data into splunk which is in the multiline format, the timestamp is not identified correctly by splunk. It shows error that it "failed to parse timestamp". how to resolve this issue. &lt;/P&gt;

&lt;P&gt;My log will be looking like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;20190723&lt;/STRONG&gt;1345267473.00&lt;BR /&gt;
                                  10-24-00        aaaa  bbbbb                           cccccc&lt;/P&gt;

&lt;P&gt;here date is 2019-07-23 and time is 10-24-00&lt;BR /&gt;
But these two line are identified as single event by enabling SHOULD_LINEMERGE = true&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 10:12:53 GMT</pubDate>
    <dc:creator>senthilnathanv</dc:creator>
    <dc:date>2019-09-10T10:12:53Z</dc:date>
    <item>
      <title>How to fix the timestamp for multiline  events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-the-timestamp-for-multiline-events/m-p/474751#M81533</link>
      <description>&lt;P&gt;Hi, Kindly help me out with to solve this question&lt;/P&gt;

&lt;P&gt;When I try to parse the log event data into splunk which is in the multiline format, the timestamp is not identified correctly by splunk. It shows error that it "failed to parse timestamp". how to resolve this issue. &lt;/P&gt;

&lt;P&gt;My log will be looking like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;20190723&lt;/STRONG&gt;1345267473.00&lt;BR /&gt;
                                  10-24-00        aaaa  bbbbb                           cccccc&lt;/P&gt;

&lt;P&gt;here date is 2019-07-23 and time is 10-24-00&lt;BR /&gt;
But these two line are identified as single event by enabling SHOULD_LINEMERGE = true&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 10:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-the-timestamp-for-multiline-events/m-p/474751#M81533</guid>
      <dc:creator>senthilnathanv</dc:creator>
      <dc:date>2019-09-10T10:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix the timestamp for multiline  events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-the-timestamp-for-multiline-events/m-p/474752#M81534</link>
      <description>&lt;P&gt;What are the props.conf settings for that sourcetype?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-the-timestamp-for-multiline-events/m-p/474752#M81534</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-09-10T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix the timestamp for multiline  events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-the-timestamp-for-multiline-events/m-p/474753#M81535</link>
      <description>&lt;P&gt;You can put this in datetime.xml in your app and deploy to first splunk enterprise instance in the input chain.  I dont think its needed on the universal forwarder, but i forget if thats the truth or not.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;
  &amp;lt;define name="_custom_datestamp1" extract="year, month, day"&amp;gt;
    &amp;lt;text&amp;gt;&amp;lt;![CDATA[(?i\*\*)(\d{4})(\d{2})(\d{2})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;
  &amp;lt;define name="_custom_timestamp1" extract="hour, minute, second"&amp;gt;
    &amp;lt;text&amp;gt;&amp;lt;![CDATA[(?i)^(\d{2})-(\d{2})-(\d{2})]]&amp;gt;&amp;lt;/text&amp;gt;
  &amp;lt;/define&amp;gt;
  &amp;lt;timePatterns&amp;gt;
    &amp;lt;use name="_custom_timestamp1"/&amp;gt;
  &amp;lt;/timePatterns&amp;gt;
  &amp;lt;datePatterns&amp;gt;
    &amp;lt;use name="_custom_datestamp1"/&amp;gt;
  &amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the changes will only apply to NEW data ingested after the datetime.xml is deployed.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 20:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-the-timestamp-for-multiline-events/m-p/474753#M81535</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-09-10T20:51:41Z</dc:date>
    </item>
  </channel>
</rss>

