<?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: could not use strptime to parse timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476845#M85844</link>
    <description>&lt;P&gt;Your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; is wrong. You have &lt;CODE&gt;%a&lt;/CODE&gt; which represents day of week, but in your log, it's showing the shorthand month which should be &lt;CODE&gt;%b&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here's the correct format &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%b %d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Apr 2020 14:19:34 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2020-04-16T14:19:34Z</dc:date>
    <item>
      <title>could not use strptime to parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476844#M85843</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Feb 18 18:36:20 smtp2 sm-mta[17872]: l1J0a3fO017872: discarded
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have one sample event. when I this it gives me "could not use strptime to parse timestamp" error. picture as attached.&lt;/P&gt;

&lt;P&gt;below is my sample props.conf&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/287872-timestamp.jpg" alt="alt text" /&gt;  &lt;/P&gt;

&lt;P&gt;[ email_log ]&lt;BR /&gt;
    BREAK_ONLY_BEFORE=\w+\s+\d+\s+\d+:\d+:\d+&lt;BR /&gt;
    CHARSET=AUTO&lt;BR /&gt;
     MAX_TIMESTAMP_LOOKAHEAD=15&lt;BR /&gt;
    NO_BINARY_CHECK=true&lt;BR /&gt;
    SHOULD_LINEMERGE=true&lt;BR /&gt;
    TIME_FORMAT=%a %d %H:%M:%S&lt;BR /&gt;
    disabled=false&lt;BR /&gt;
    pulldown_type=true&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476844#M85843</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2020-09-30T05:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: could not use strptime to parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476845#M85844</link>
      <description>&lt;P&gt;Your &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; is wrong. You have &lt;CODE&gt;%a&lt;/CODE&gt; which represents day of week, but in your log, it's showing the shorthand month which should be &lt;CODE&gt;%b&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here's the correct format &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%b %d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 14:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476845#M85844</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2020-04-16T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: could not use strptime to parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476846#M85845</link>
      <description>&lt;P&gt;yes you are right.&lt;BR /&gt;
My silly mistake.. &lt;BR /&gt;
the lab results are giving me below errors:&lt;/P&gt;

&lt;P&gt;Data Onboarding – Default (empty) TIME_FORMAT (contrary to best practices).&lt;BR /&gt;
- Data Onboarding – Default (empty) TIME_PREFIX (contrary to best practices).&lt;BR /&gt;
- Data Onboarding – Default TRUNCATE; should have been set lower as a safety switch against bad data.&lt;BR /&gt;
- Data Onboarding – LINE_BREAKER not up to best practices. As a reminder, the default is '([ ]+)', read as 'a capture group matching one or more new line or carriage return line feeds.' The goal is to &lt;EM&gt;enhance&lt;/EM&gt; this, for this sample, by including extra information like the date stamp which signals 'not just a new line, but a new &lt;EM&gt;event&lt;/EM&gt;'. Splunk treats the capture group like a 'hole punch' as the text to remove to separate events from one another within the file.&lt;/P&gt;

&lt;P&gt;can you please support me with these.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476846#M85845</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2020-09-30T05:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: could not use strptime to parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476847#M85846</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;BREAK_ONLY_BEFORE=\w+\s+\d+\s+\d+:\d+:\d+
SHOULD_LINEMERGE=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is not best practice.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE=false
LINE_BREAKER = ([\r\n]+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:03:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476847#M85846</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-17T12:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: could not use strptime to parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476848#M85847</link>
      <description>&lt;P&gt;Sorry did not get your point. you are referring first point or 2nd point.&lt;BR /&gt;
and whats about TIME_PREFIX and TRUNCATE. can you please advise on this as well&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476848#M85847</guid>
      <dc:creator>riqbal47010</dc:creator>
      <dc:date>2020-04-17T12:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: could not use strptime to parse timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476849#M85848</link>
      <description>&lt;P&gt;see&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/227121/what-is-the-difference-between-line-breaker-and-br.html"&gt;https://answers.splunk.com/answers/227121/what-is-the-difference-between-line-breaker-and-br.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;TIME_PREFIX  no need&lt;BR /&gt;
TRUNCATE do you have problem?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 12:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/could-not-use-strptime-to-parse-timestamp/m-p/476849#M85848</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-17T12:58:55Z</dc:date>
    </item>
  </channel>
</rss>

