I’m collecting messages with the GCP plugin
this plugin parse the timestamp with rule
// Timestamp.
JsonNode value = node.path("timestamp");
if (value.isTextual()) {
timestamp = ISODateTimeFormat.dateTime().withZone(DateTimeZone.UTC).parseDateTime(value.asText());
}
Messages with timestamp in the format of
“timestamp”:“2020-12-31T08:24:35.647524111Z” works well
while format
“timestamp”:“2020-12-31T10:53:41Z” fails
The failure is with messages (graylog’s log) like:
java.lang.IllegalArgumentException: Invalid format: "2021-01-19T09:44:12Z" is malformed at "Z"
at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:945) ~[graylog.jar:?]
I’m trying to use pipelines and/or extractors using hints in documentations and many topics on the forum but it doesn’t work. I’m suspecting it’s not possible to do it on this way as the piplines/extractors works with messages accepted by graylog and in my case it’s revoked and the messages are not present on the UI.
Could someone confirm my surmise and/or advice how to resolve this issue?