<?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 extracting timestamp without second in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/extracting-timestamp-without-second/m-p/58585#M11513</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;
I'm trying to extract timestamp from following log entry.&lt;/P&gt;

&lt;P&gt;0188010010999992012010100004+70933-008667FM-12+0009ENJA V0201001N006010021019N0030001N1+00171+00121096611ADDAA106002091AY161061AY221061GF108991081071002501999999MA1999999096501MD1710221+9999MW1611REMSYN088AAXX  01001 01001 11330 81006 10017 20012 39650 49661 57022 60021 76162 887// 333 91109;&lt;/P&gt;

&lt;P&gt;Date information is 201201010000 in 16-27 position and it only contains YYYYMMDDHHMM, not SS. When I tried with "%Y%m%d%H%M", it always returned 2012010100004. (At the end, 4 is not the second information)&lt;BR /&gt;
I tried with followings.&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%Y%m%d%H%M&lt;BR /&gt;
TIME_PREFIX=^\d{15}&lt;/P&gt;

&lt;P&gt;When I tried to grab only date information using "%Y%m%d", it always returned 201201010. One more '0' at the end which should not be included. It makes problem when the hour is 11 or 12 as the day became 11th. &lt;BR /&gt;
Why one additional digit is grabbed?&lt;/P&gt;

&lt;P&gt;Any suggestions? &lt;BR /&gt;
Thank you in advance. &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:25:55 GMT</pubDate>
    <dc:creator>kyoungwoon</dc:creator>
    <dc:date>2020-09-28T12:25:55Z</dc:date>
    <item>
      <title>extracting timestamp without second</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extracting-timestamp-without-second/m-p/58585#M11513</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;
I'm trying to extract timestamp from following log entry.&lt;/P&gt;

&lt;P&gt;0188010010999992012010100004+70933-008667FM-12+0009ENJA V0201001N006010021019N0030001N1+00171+00121096611ADDAA106002091AY161061AY221061GF108991081071002501999999MA1999999096501MD1710221+9999MW1611REMSYN088AAXX  01001 01001 11330 81006 10017 20012 39650 49661 57022 60021 76162 887// 333 91109;&lt;/P&gt;

&lt;P&gt;Date information is 201201010000 in 16-27 position and it only contains YYYYMMDDHHMM, not SS. When I tried with "%Y%m%d%H%M", it always returned 2012010100004. (At the end, 4 is not the second information)&lt;BR /&gt;
I tried with followings.&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%Y%m%d%H%M&lt;BR /&gt;
TIME_PREFIX=^\d{15}&lt;/P&gt;

&lt;P&gt;When I tried to grab only date information using "%Y%m%d", it always returned 201201010. One more '0' at the end which should not be included. It makes problem when the hour is 11 or 12 as the day became 11th. &lt;BR /&gt;
Why one additional digit is grabbed?&lt;/P&gt;

&lt;P&gt;Any suggestions? &lt;BR /&gt;
Thank you in advance. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extracting-timestamp-without-second/m-p/58585#M11513</guid>
      <dc:creator>kyoungwoon</dc:creator>
      <dc:date>2020-09-28T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: extracting timestamp without second</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extracting-timestamp-without-second/m-p/58586#M11514</link>
      <description>&lt;P&gt;Try adding &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD=12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should force it to ignore the 13th digit. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 02:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extracting-timestamp-without-second/m-p/58586#M11514</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2012-09-13T02:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: extracting timestamp without second</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extracting-timestamp-without-second/m-p/58587#M11515</link>
      <description>&lt;P&gt;I've tried, but it didn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 02:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extracting-timestamp-without-second/m-p/58587#M11515</guid>
      <dc:creator>kyoungwoon</dc:creator>
      <dc:date>2012-09-13T02:55:01Z</dc:date>
    </item>
  </channel>
</rss>

