Why does pantherlog think my event time is Jan 2, 2006?
Last updated: September 3, 2024
QUESTION
When using pantherlog to test my schema, pantherlog seems to think the event time is 2006-01-02T15:04:05Z07:00, displaying an error message like
EventTime: DecodeTime: parsing time "..." as "2006-01-02T15:04:05Z07:00": cannot parse ... as ..., error found in byte #10 of ...ANSWER
This error is most commonly caused by misformatting the expected p_event_time value in your test file. Please ensure your expected p_event_time format matches the following:
YYYY-MM-DDTHH:MM:SS.SSSZIn other words, make sure that you:
Include the T separator between the date and time
Include the fractional second to 3 decimal places
Suffix the timestamp with a Z character