<?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: Can not parse timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105528#M22236</link>
    <description>&lt;P&gt;Who knows! I didn't have time to test it. Sometimes in Splunk if you try to be too specific you can end up with conflicting configurations that try to do things in different orders. There are probably a few wonky bits &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Feel free to click the tick next to my answer to accept if its all working now!&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2012 08:28:51 GMT</pubDate>
    <dc:creator>Drainy</dc:creator>
    <dc:date>2012-07-23T08:28:51Z</dc:date>
    <item>
      <title>Can not parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105525#M22233</link>
      <description>&lt;P&gt;I have a problem with this file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-----------------------------------
CLIENT                        100
GUID                          4F281780E49E1DC0E10080000A1E8680
INPUT_DATA                    SAP_SYSTEM=LD1;SAP_CLIENT=100;TITLE=Visning af tatusrecord;Function code that PAI triggered=BACK;WE02.SAPLEDI5.0100.SAPLEDI5.0100.EDI_INTDS.DOCNUM[0]()=0000000000049301;
OUTPUT_DATA                   SAP_SYSTEM=LD1;SAP_CLIENT=100;
CREATED_AT                    20120201123559
CREATED_BY                    SZT
CHANGED_AT                    20120201123559
CHANGED_BY                    SZT
TIMESTAMP                     20120201093938
TRX_NAME                      WE02
USERNAME                      SZT
CLIENT_PC                     172.28.240.189
TECHNOLOGY                    10
----------------------------------------
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I use the following configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE=^CLIENT\s+\d{3}
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
MAX_TIMESTAMP_LOOKAHEAD=14
TIME_FORMAT=%Y%m%d%H:%M:%S
TIME_PREFIX=TIMESTAMP\s+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it is like Splunk reads to much into the timestamp even though I use “MAX_TIMESTAMP_LOOKAHEAD=14”&lt;/P&gt;

&lt;P&gt;Splunk reports this error.&lt;BR /&gt;
-Could not use strptime to parse timestamp from "20120201093938\nTRX_NAME WE02\nUSERNAME SZT\n&lt;BR /&gt;
CLIENT_PC" &lt;/P&gt;

&lt;P&gt;Hope some one can help me&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:07:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105525#M22233</guid>
      <dc:creator>kennmunklarsen</dc:creator>
      <dc:date>2020-09-28T12:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can not parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105526#M22234</link>
      <description>&lt;P&gt;Splunk is quite clever, sometimes its better to let it try and handle as much as possible, using the data above the following props performs the multiline extraction and timestamping correctly;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE=CLIENT\s+
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
TIME_PREFIX=TIMESTAMP
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2012 08:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105526#M22234</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-07-23T08:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can not parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105527#M22235</link>
      <description>&lt;P&gt;It works!, but why did the other configuration not work?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 08:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105527#M22235</guid>
      <dc:creator>kennmunklarsen</dc:creator>
      <dc:date>2012-07-23T08:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can not parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105528#M22236</link>
      <description>&lt;P&gt;Who knows! I didn't have time to test it. Sometimes in Splunk if you try to be too specific you can end up with conflicting configurations that try to do things in different orders. There are probably a few wonky bits &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Feel free to click the tick next to my answer to accept if its all working now!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 08:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105528#M22236</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-07-23T08:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can not parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105529#M22237</link>
      <description>&lt;P&gt;Your TIME_FORMAT specifies colons; the time stamp I can see from your event sample doesn't have any.  Try %Y%m%d%H%M%S.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2012 12:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-not-parse-timestamp/m-p/105529#M22237</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-07-23T12:37:54Z</dc:date>
    </item>
  </channel>
</rss>

