<?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: Simple Timestamp not recognized in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102596#M21529</link>
    <description>&lt;P&gt;You may have to change the MAX_DAYS_AGO parameter as the default is 2000.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:23:23 GMT</pubDate>
    <dc:creator>iamtess</dc:creator>
    <dc:date>2020-09-30T02:23:23Z</dc:date>
    <item>
      <title>Simple Timestamp not recognized</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102593#M21526</link>
      <description>&lt;P&gt;I have a xml file source as below. I use &amp;lt;item to signature for event and it works.&lt;BR /&gt;
But the timestamp simply refuse to work. &lt;BR /&gt;
I used the regex to identify the timestamp: %Y-%m-%d %HH:%MM&lt;BR /&gt;
Any help is appreciated. Thx&lt;/P&gt;

&lt;P&gt;&lt;ITEM week="01" package="SYXS_CON1P" version="0.0.0" env="Prod" time="2006-01-02 09:45" requestor="" project_manager="" complexity="" category="Test-QA   " reltype="DATABASE" rel_id="1" preview_conf_time="2006-01-02 09:42" request_time="" lu="" rolback="" preview_sent_time="" release_trigger_time=""&gt;&lt;/ITEM&gt;&lt;/P&gt;

&lt;P&gt;It is odd enough. It recognize this. The only different is the time. But the time has exactly the same format as above.&lt;/P&gt;

&lt;P&gt;&lt;ITEM week="6 " package="SX_CONP" version="0.0.0" env="Prod" time="2007-01-27 09:45" requestor="" project_manager="" complexity="low    " category="Emergency " reltype="DATABASE" rel_id="10446" preview_conf_time="2007-01-27 09:42" request_time="" lu="" rolback="" preview_sent_time="" release_trigger_time=""&gt;&lt;/ITEM&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 20:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102593#M21526</guid>
      <dc:creator>yiguanghu</dc:creator>
      <dc:date>2012-07-18T20:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Timestamp not recognized</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102594#M21527</link>
      <description>&lt;P&gt;Splunk doesn't use regex to specify timestamps, it uses using strptime: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.python.org/library/datetime.html?highlight=strptime#strftime-behavior"&gt;http://docs.python.org/library/datetime.html?highlight=strptime#strftime-behavior&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You're timestamp syntax doesn't match the timestamp you've pasted from the events. The strptime is actually '%Y-%m-%d %H:%M'. Your props.conf should do something like this: &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourstanza]
TIME_PREFIX = .+preview_conf_time=
TIME_FORMAT = %Y-%m-%d %H:%M
MAX_TIMESTAMP_LOOKAHEAD = 16
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jul 2012 22:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102594#M21527</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-07-18T22:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Timestamp not recognized</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102595#M21528</link>
      <description>&lt;P&gt;thanks for the answer. But it didn't make any difference. This is my test data. Try it. It will recognize the second item timestamp. But it does not work for '2006-01-02 09:45'. It recognize the time part, but the date is not working. Is it because the date is too old? I changed the date from 2006 to 2008, it works immediately. What am I missing?&lt;/P&gt;

&lt;P&gt;&lt;RELEASE_MGMT&gt;&lt;BR /&gt;
  &lt;ITEM week="01" package="Sybase" version="0.0.0" env="Prod" time="2006-01-02 09:45" release_manager="4123" requestor="" project_manager="" complexity="" ca=""&gt;&lt;BR /&gt;
tegory='Test-QA   ' relType='DATABASE' Rel_id='1' preview_conf_time='2006-01-02 09:42' request_time='' LU='' Rolback='' preview_sent_time='' release_trigger_time='' uatECMS='NA' /&amp;gt;&lt;BR /&gt;
  &lt;ITEM week="5 " package="Sybase" version="0.0.0" env="PROD" time="2009-04-10 04:14" release_manager="4234" requestor="" project_manager="NULL" complexity="&amp;lt;br&amp;gt;
low    " category="Expedited " reltype="DATABASE" rel_id="Expedited" preview_conf_time="2009-04-10 04:00" request_time="2009-04-10 02:53" lu="N" rolback="N"&gt;&lt;BR /&gt;
preview_sent_time='' release_trigger_time='' uatECMS='NA' /&amp;gt;&lt;BR /&gt;
&lt;/ITEM&gt;&lt;/ITEM&gt;&lt;/RELEASE_MGMT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2012 15:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102595#M21528</guid>
      <dc:creator>yiguanghu</dc:creator>
      <dc:date>2012-07-19T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Timestamp not recognized</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102596#M21529</link>
      <description>&lt;P&gt;You may have to change the MAX_DAYS_AGO parameter as the default is 2000.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-Timestamp-not-recognized/m-p/102596#M21529</guid>
      <dc:creator>iamtess</dc:creator>
      <dc:date>2020-09-30T02:23:23Z</dc:date>
    </item>
  </channel>
</rss>

