<?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: Strange timestamp warning in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Strange-timestamp-warning/m-p/491595#M83987</link>
    <description>&lt;P&gt;I don't why the second format works, but it shouldn't.  Your first format is almost correct, it just needs to be modified to look for 4-digit years.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y-%m-%d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Oct 2019 15:51:04 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-10-01T15:51:04Z</dc:date>
    <item>
      <title>Strange timestamp warning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strange-timestamp-warning/m-p/491594#M83986</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I'm importing data from Windows event logs to a Splunk machine in Unix (version 7.0.3).&lt;/P&gt;

&lt;P&gt;I have a weird warning when I try to do my timestamp configuration.&lt;/P&gt;

&lt;P&gt;My logs timestamp looks like this:&lt;/P&gt;

&lt;P&gt;2019-03-10 12:04:44:foo: bar ... &lt;/P&gt;

&lt;P&gt;So I follow the official doc and I put:&lt;BR /&gt;
TIME_FORMAT = %y-%m-%d %H:%M:%S:&lt;BR /&gt;
but I get some warnings and the event breaking is wrong.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Warning: Could not use strptime to&lt;BR /&gt;
parse timestamp from"2019-03-10&lt;BR /&gt;
12:04:44:foo..."&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Then when I try:&lt;BR /&gt;
TIME_FORMAT= %y%-%m%-%d %H%:%M%:%S%:&lt;BR /&gt;
which is surprisingly not a format anywhere in the docs, everything looks fine.&lt;/P&gt;

&lt;P&gt;Can anyone help me understand what's going on?&lt;BR /&gt;
I'm not sure if I'm following the best practices...&lt;/P&gt;

&lt;P&gt;I join some screenshots.&lt;BR /&gt;
Thank you in advance.&lt;/P&gt;

&lt;P&gt;With warning: &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7744i19099CB492146B1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
Without warning: &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7745iD0F4066BE6A3EA7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 09:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strange-timestamp-warning/m-p/491594#M83986</guid>
      <dc:creator>nonaronald</dc:creator>
      <dc:date>2019-10-01T09:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Strange timestamp warning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strange-timestamp-warning/m-p/491595#M83987</link>
      <description>&lt;P&gt;I don't why the second format works, but it shouldn't.  Your first format is almost correct, it just needs to be modified to look for 4-digit years.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y-%m-%d %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 15:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strange-timestamp-warning/m-p/491595#M83987</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-01T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Strange timestamp warning</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Strange-timestamp-warning/m-p/491596#M83988</link>
      <description>&lt;P&gt;Thank you richgalloway. It was my mistake  %Y-%m-%d %H:%M:%S works well but the other format works well too.&lt;BR /&gt;
That's why I was confused.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 13:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Strange-timestamp-warning/m-p/491596#M83988</guid>
      <dc:creator>nonaronald</dc:creator>
      <dc:date>2019-10-02T13:10:35Z</dc:date>
    </item>
  </channel>
</rss>

