<?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: Timestamp extraction for varying subseconds and time zones? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-for-varying-subseconds-and-time-zones/m-p/446459#M77655</link>
    <description>&lt;P&gt;If you have multiple timestamp formats in single log file, then try configuring datetime.xml. Refer to below docs for more information. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Configuredatetimexml"&gt;http://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Configuredatetimexml&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2014/04/23/its-that-time-again.html"&gt;https://www.splunk.com/blog/2014/04/23/its-that-time-again.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 17:05:26 GMT</pubDate>
    <dc:creator>sudosplunk</dc:creator>
    <dc:date>2018-09-07T17:05:26Z</dc:date>
    <item>
      <title>Timestamp extraction for varying subseconds and time zones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-for-varying-subseconds-and-time-zones/m-p/446458#M77654</link>
      <description>&lt;P&gt;How do you extract a timestamp from message having &lt;/P&gt;

&lt;P&gt;event1:  Timestamp:2018-09-06T00:00:11.214000000, Timezone:UTC&lt;/P&gt;

&lt;P&gt;event2:   Timestamp:2018-09-06T00:00:11.214, Timezone:CST&lt;/P&gt;

&lt;P&gt;where sub seconds can be milliseconds or nano seconds which vary and time zone can be any string like UTC,CST etc.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 16:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-for-varying-subseconds-and-time-zones/m-p/446458#M77654</guid>
      <dc:creator>ankithreddy777</dc:creator>
      <dc:date>2018-09-07T16:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction for varying subseconds and time zones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-for-varying-subseconds-and-time-zones/m-p/446459#M77655</link>
      <description>&lt;P&gt;If you have multiple timestamp formats in single log file, then try configuring datetime.xml. Refer to below docs for more information. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Configuredatetimexml"&gt;http://docs.splunk.com/Documentation/SplunkCloud/latest/Data/Configuredatetimexml&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2014/04/23/its-that-time-again.html"&gt;https://www.splunk.com/blog/2014/04/23/its-that-time-again.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 17:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-for-varying-subseconds-and-time-zones/m-p/446459#M77655</guid>
      <dc:creator>sudosplunk</dc:creator>
      <dc:date>2018-09-07T17:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction for varying subseconds and time zones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-for-varying-subseconds-and-time-zones/m-p/446460#M77656</link>
      <description>&lt;P&gt;looks like splunk can handle it,&lt;/P&gt;

&lt;P&gt;try below props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[odd_timestamp]
SHOULD_LINEMERGE=true
NO_BINARY_CHECK=true
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%9N, Timezone:%Z
TIME_PREFIX=^
MAX_TIMESTAMP_LOOKAHEAD=48
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;worked for me,&lt;BR /&gt;
see screenshot below:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5721i72CD88BDB2698850/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 17:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-for-varying-subseconds-and-time-zones/m-p/446460#M77656</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-09-07T17:57:04Z</dc:date>
    </item>
  </channel>
</rss>

