<?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 configure Splunk to recognize the timestamp format in my data where the Date and Time are not in the same line? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220406#M43305</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a problem when I want to extract the timestamp from an event in adding data to Splunk.&lt;/P&gt;

&lt;P&gt;Here is a sample event :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;LOG&amp;gt;
  &amp;lt;DATE&amp;gt;12022012&amp;lt;/DATE&amp;gt;
  &amp;lt;TIME&amp;gt;004459&amp;lt;/TIME&amp;gt;
  &amp;lt;EventID&amp;gt;131&amp;lt;/EventID&amp;gt;
  &amp;lt;Version&amp;gt;0&amp;lt;/Version&amp;gt;
  &amp;lt;Level&amp;gt;4&amp;lt;/Level&amp;gt;
  &amp;lt;Task&amp;gt;33&amp;lt;/Task&amp;gt;
  &amp;lt;Opcode&amp;gt;0&amp;lt;/Opcode&amp;gt;
  &amp;lt;Keywords&amp;gt;0x8000000000000004&amp;lt;/Keywords&amp;gt;
  &amp;lt;EventRecordID&amp;gt;7150639&amp;lt;/EventRecordID&amp;gt;
  &amp;lt;Correlation /&amp;gt;
&amp;lt;/LOG&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I matched the timestamp prefix with this regex: &lt;CODE&gt;\s*(?=\d{8}&amp;lt;\/DATE&amp;gt;\s*\d{6})&lt;/CODE&gt;&lt;BR /&gt;
But I have a problem with the  timestamp format because the Date and Time are not in the same line.&lt;/P&gt;

&lt;P&gt;However, if the Date and Time were in the same line, Splunk can recognize the timestamp with this configuration:&lt;BR /&gt;
Timestamp prefix : &lt;CODE&gt;\s*(?=\d{8}&amp;lt;\/DATE&amp;gt;\s*\d{6})&lt;/CODE&gt;&lt;BR /&gt;
Timestamp format : &lt;CODE&gt;%d%m%Y%H%M%S&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I really appreciate any help you can provide.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2016 08:52:40 GMT</pubDate>
    <dc:creator>voshka</dc:creator>
    <dc:date>2016-06-16T08:52:40Z</dc:date>
    <item>
      <title>How to configure Splunk to recognize the timestamp format in my data where the Date and Time are not in the same line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220406#M43305</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a problem when I want to extract the timestamp from an event in adding data to Splunk.&lt;/P&gt;

&lt;P&gt;Here is a sample event :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;LOG&amp;gt;
  &amp;lt;DATE&amp;gt;12022012&amp;lt;/DATE&amp;gt;
  &amp;lt;TIME&amp;gt;004459&amp;lt;/TIME&amp;gt;
  &amp;lt;EventID&amp;gt;131&amp;lt;/EventID&amp;gt;
  &amp;lt;Version&amp;gt;0&amp;lt;/Version&amp;gt;
  &amp;lt;Level&amp;gt;4&amp;lt;/Level&amp;gt;
  &amp;lt;Task&amp;gt;33&amp;lt;/Task&amp;gt;
  &amp;lt;Opcode&amp;gt;0&amp;lt;/Opcode&amp;gt;
  &amp;lt;Keywords&amp;gt;0x8000000000000004&amp;lt;/Keywords&amp;gt;
  &amp;lt;EventRecordID&amp;gt;7150639&amp;lt;/EventRecordID&amp;gt;
  &amp;lt;Correlation /&amp;gt;
&amp;lt;/LOG&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I matched the timestamp prefix with this regex: &lt;CODE&gt;\s*(?=\d{8}&amp;lt;\/DATE&amp;gt;\s*\d{6})&lt;/CODE&gt;&lt;BR /&gt;
But I have a problem with the  timestamp format because the Date and Time are not in the same line.&lt;/P&gt;

&lt;P&gt;However, if the Date and Time were in the same line, Splunk can recognize the timestamp with this configuration:&lt;BR /&gt;
Timestamp prefix : &lt;CODE&gt;\s*(?=\d{8}&amp;lt;\/DATE&amp;gt;\s*\d{6})&lt;/CODE&gt;&lt;BR /&gt;
Timestamp format : &lt;CODE&gt;%d%m%Y%H%M%S&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I really appreciate any help you can provide.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 08:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220406#M43305</guid>
      <dc:creator>voshka</dc:creator>
      <dc:date>2016-06-16T08:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to recognize the timestamp format in my data where the Date and Time are not in the same line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220407#M43306</link>
      <description>&lt;P&gt;I think Splunk can only match the timestamp when the Date and Time were in the same line while on this event the date and time are in two different line,&lt;BR /&gt;
How can i recognize the timestamp on this event log.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 13:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220407#M43306</guid>
      <dc:creator>voshka</dc:creator>
      <dc:date>2016-06-16T13:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to recognize the timestamp format in my data where the Date and Time are not in the same line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220408#M43307</link>
      <description>&lt;P&gt;Hi voshka, This looks similar to another question here, the answer of which I believe you could adapt towards your needs : &lt;A href="https://answers.splunk.com/answers/406376/how-do-i-edit-my-datetimexml-file-for-my-custom-da.html"&gt;https://answers.splunk.com/answers/406376/how-do-i-edit-my-datetimexml-file-for-my-custom-da.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please let me know if this works out for you!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2016 15:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220408#M43307</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-06-16T15:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to recognize the timestamp format in my data where the Date and Time are not in the same line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220409#M43308</link>
      <description>&lt;P&gt;I have the same problem like Voshka. The link above is for logs that are in one line. I have almost the same log as Voshka and don't know how to get those date and time to be recognize? &lt;/P&gt;

&lt;P&gt;Any ideas?  &lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Splunk-to-recognize-the-timestamp-format-in-my/m-p/220409#M43308</guid>
      <dc:creator>gagi76</dc:creator>
      <dc:date>2016-07-05T12:50:21Z</dc:date>
    </item>
  </channel>
</rss>

