<?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: Why am I getting error &amp;quot;Could not use regex to parse timestamp...&amp;quot; for timestamps before November 2010? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260462#M78100</link>
    <description>&lt;P&gt;I went through the standard process of verifying the data for any special characters or spaces... it was a no go.&lt;BR /&gt;
I simplified the CSV and found all dates before 11-30-2010 would not get assigned the time stamp. &lt;BR /&gt;
I think this is a bug. So I ended up excluding all log data before 1-1-2011 and stopped battling the timestamp. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
I appreciate your time - thanks!&lt;/P&gt;

&lt;P&gt;timedate,num&lt;BR /&gt;
11/24/1996 22:00:00,1&lt;BR /&gt;
11/25/1999 22:00:00,2&lt;BR /&gt;
11/26/2000 22:00:00,3&lt;BR /&gt;
11/27/2010 22:00:00,4&lt;BR /&gt;
11/28/2010 22:00:00,5&lt;BR /&gt;
11/29/2010 22:00:00,6&lt;BR /&gt;
11/30/2010 22:00:00,7&lt;BR /&gt;
12/01/2010 22:00:00,8&lt;BR /&gt;
12/02/2010 22:00:00,9&lt;BR /&gt;
12/03/2010 22:00:00,0&lt;BR /&gt;
12/04/2010 22:00:00,10&lt;BR /&gt;
12/05/2010 22:00:00,11&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2016 22:35:30 GMT</pubDate>
    <dc:creator>TangentTexan</dc:creator>
    <dc:date>2016-05-21T22:35:30Z</dc:date>
    <item>
      <title>Why am I getting error "Could not use regex to parse timestamp..." for timestamps before November 2010?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260460#M78098</link>
      <description>&lt;P&gt;Using Splunk 6.4.0 on Ubuntu Server &lt;/P&gt;

&lt;P&gt;Trying to index a file that goes back in years. Working with the Timestamp to get it indexed correctly - I ran into a problem with it for Time Stamps before 11-30-2010, using this format:   &lt;CODE&gt;%Y-%m-%d %H:%M:%S %Z&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Am I missing something?  Thank you.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample Data:  timedate, number&lt;/STRONG&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;EM&gt;Could not use regex to parse timestamp from "2010-11-24 22:00:00 EST".&lt;/EM&gt;&lt;BR /&gt;
2010-11-24 22:00:00 EST,3.1&lt;BR /&gt;
&lt;EM&gt;Could not use regex to parse timestamp from "2010-11-25 22:00:00 EST".&lt;/EM&gt;&lt;BR /&gt;
2010-11-25 22:00:00 EST,2.22&lt;BR /&gt;
&lt;EM&gt;Could not use regex to parse timestamp from "2010-11-26 22:00:00 EST".&lt;/EM&gt;&lt;BR /&gt;
2010-11-26 22:00:00 EST,3.33&lt;BR /&gt;
&lt;EM&gt;Could not use regex to parse timestamp from "2010-11-27 22:00:00 EST".&lt;/EM&gt;&lt;BR /&gt;
2010-11-27 22:00:00 EST,4.44&lt;BR /&gt;
&lt;EM&gt;Could not use regex to parse timestamp from "2010-11-28 22:00:00 EST".&lt;/EM&gt;&lt;BR /&gt;
2010-11-28 22:00:00 EST,5.2&lt;BR /&gt;
Could not use regex to parse timestamp from "2010-11-29 22:00:00 EST".&lt;BR /&gt;
2010-11-29 22:00:00 EST,6.1&lt;BR /&gt;
2010-11-30 22:00:00 EST,7.2&lt;BR /&gt;
2010-12-01 22:00:00 EST,8.5&lt;BR /&gt;
2010-12-02 22:00:00 EST,9.8&lt;BR /&gt;
2010-12-03 22:00:00 EST,9.2&lt;BR /&gt;
2010-12-04 22:00:00 EST,9.2&lt;BR /&gt;
2010-12-05 22:00:00 EST,9.9&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 16:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260460#M78098</guid>
      <dc:creator>TangentTexan</dc:creator>
      <dc:date>2016-05-21T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Could not use regex to parse timestamp..." for timestamps before November 2010?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260461#M78099</link>
      <description>&lt;P&gt;Many times this is because the spacing between the date elements changed at some point.  This is very hard to see and also a big pain because it requires you to switch from using the "easy" configurations to using &lt;CODE&gt;datetime.xml&lt;/CODE&gt; (so that you can specify more than one  time format.  Very carefully check the spacing and you will probably find variation.&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 19:06:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260461#M78099</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-21T19:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Could not use regex to parse timestamp..." for timestamps before November 2010?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260462#M78100</link>
      <description>&lt;P&gt;I went through the standard process of verifying the data for any special characters or spaces... it was a no go.&lt;BR /&gt;
I simplified the CSV and found all dates before 11-30-2010 would not get assigned the time stamp. &lt;BR /&gt;
I think this is a bug. So I ended up excluding all log data before 1-1-2011 and stopped battling the timestamp. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
I appreciate your time - thanks!&lt;/P&gt;

&lt;P&gt;timedate,num&lt;BR /&gt;
11/24/1996 22:00:00,1&lt;BR /&gt;
11/25/1999 22:00:00,2&lt;BR /&gt;
11/26/2000 22:00:00,3&lt;BR /&gt;
11/27/2010 22:00:00,4&lt;BR /&gt;
11/28/2010 22:00:00,5&lt;BR /&gt;
11/29/2010 22:00:00,6&lt;BR /&gt;
11/30/2010 22:00:00,7&lt;BR /&gt;
12/01/2010 22:00:00,8&lt;BR /&gt;
12/02/2010 22:00:00,9&lt;BR /&gt;
12/03/2010 22:00:00,0&lt;BR /&gt;
12/04/2010 22:00:00,10&lt;BR /&gt;
12/05/2010 22:00:00,11&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 22:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260462#M78100</guid>
      <dc:creator>TangentTexan</dc:creator>
      <dc:date>2016-05-21T22:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Could not use regex to parse timestamp..." for timestamps before November 2010?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260463#M78101</link>
      <description>&lt;P&gt;Looks fine to me -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search 
| eval CREATION_DATE="2010-11-24 22:00:00 EST"
| eval xxxx=strptime(CREATION_DATE,"%Y-%m-%d %H:%M:%S %Z") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;returns xxxx as &lt;CODE&gt;1290654000.000000&lt;/CODE&gt; which is &lt;CODE&gt;Thu, 25 Nov 2010 03:00:00 GMT&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 23:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260463#M78101</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-05-21T23:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Could not use regex to parse timestamp..." for timestamps before November 2010?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260464#M78102</link>
      <description>&lt;P&gt;I was trying to process the time at index time as I am trying to do a fresh index data. as new data gets entered this is not an issue. Just the older data.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 00:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260464#M78102</guid>
      <dc:creator>TangentTexan</dc:creator>
      <dc:date>2016-05-22T00:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Could not use regex to parse timestamp..." for timestamps before November 2010?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260465#M78103</link>
      <description>&lt;P&gt;I know this is a dated question, but ran into the same issue. The solution for me was to increase MAX_DAYS_AGO in props.conf. Looks like based on your description of it not working for 6 year old data this was your issue as well. Since Splunk by default ignores dates over 5 1/2ish years old.&lt;/P&gt;

&lt;P&gt;From the docs site:&lt;/P&gt;

&lt;P&gt;Specifies the maximum number of days in the past, from the current date, that an extracted date can be valid.&lt;BR /&gt;
For example, if MAX_DAYS_AGO = 10, Splunk software ignores dates older than 10 days from the current date and instead either uses the timestamp of the previous event, or uses the current index time of the event if it cannot determine a timestamp in the previous event.&lt;/P&gt;

&lt;P&gt;The maximum settable number of days in the past is 10951.&lt;/P&gt;

&lt;P&gt;Defaults to 2000 days&lt;BR /&gt;
Note: If you have data that is more than 2000 days old, increase this setting.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-getting-error-quot-Could-not-use-regex-to-parse/m-p/260465#M78103</guid>
      <dc:creator>antlefebvre</dc:creator>
      <dc:date>2020-09-29T22:33:55Z</dc:date>
    </item>
  </channel>
</rss>

