News for hackers. Stuff that matters.
Re:The Unix timestamp will begin with 16 this Sunday by moralestapia on Saturday September 12, 2020 @12:59PM (#24453773)
I'm always left wondering how something like this could happen. I kind of get Y2K and stuff like overflows ... but this one? Really? Did someone put a regex like /^15... to "match" dates?
Re:The Unix timestamp will begin with 16 this Sunday by lukebennett on Saturday September 12, 2020 @01:33PM (#24454012)
Yep, that's exactly what Splunk have done - scroll down the release notes linked to by the grandparent and the faulty regex is shown.

What's super daft is the proposed fix is only a further sticking plaster, adding support for the 16... range (and the 2020s decade) rather than all future dates. So in a couple of years a further patch will be needed...

Re:The Unix timestamp will begin with 16 this Sunday by Drdrdrq on Saturday September 12, 2020 @04:04PM (#24455152)
To fix the fire this is probably the best solution because the risk of unintended side effects is very low. I would just hope it is then followed by a proper fix.
Re:The Unix timestamp will begin with 16 this Sunday by moralestapia on Saturday September 12, 2020 @03:19PM (#24454775)
Wow ... I'm ... I'm sure there's a better way to handle this.
Re:The Unix timestamp will begin with 16 this Sunday by Cyphase on Saturday September 12, 2020 @01:36PM (#24454038)
> Problem

> Beginning on January 1, 2020, un-patched Splunk platform instances will be unable to recognize timestamps from events where the date contains a two-digit year. This means data that meets this criteria will be indexed with incorrect timestamps.

> Beginning on September 13, 2020 at 12:26:39 PM Coordinated Universal Time (UTC), un-patched Splunk platform instances will be unable to recognize timestamps from events with dates that are based on Unix time, due to incorrect parsing of timestamp data.

> Impact

> ...

> The issue appears when you have configured the input source to automatically determine timestamps, ...

> There is no method to correct the timestamps after the Splunk platform has ingested the data when the problem starts. If you ingest data with an un-patched Splunk platform instance beginning on January 1, 2020, you must patch the instance and re-ingest that data for its timestamps to be correct.

> Cause

> The Splunk platform input processor uses a file called datetime.xml to help the processor correctly determine timestamps based on incoming data. The file uses regular expressions to extract many different types of dates and timestamps from incoming data.

> On un-patched Splunk platform instances, the file supports the extraction of two-digit years of "19", that is, up to December 31, 2019. Beginning on January 1, 2020, these un-patched instances will mistakenly treat incoming data as having an invalid timestamp year, and could either add timestamps using the current year, or misinterpret the date incorrectly and add a timestamp with the misinterpreted date.

Re:The Unix timestamp will begin with 16 this Sunday by crehn on Saturday September 12, 2020 @03:45PM (#24454999)
And how would such a solution not be immediately thrown out during code review?