I'm trying to use a datetime field (startTime) from the input xml logs and use it as @timestamp but something is not properly set as it idenfies the field as string but is not able to apply the transformation leaving the current time as @timestamp.
This is a sample of the date 2019-09-24T13:15:16.134+02:00
I tested with the folowing formats but none of them seems to work:
"yyyy-MM-dd'T'HH:mm:ss'.'SSSZZ",
"yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",
"yyyy-MM-dd'T'HH:mm:ss','SSSZZ",
"yyyy-MM-dd'T'HH:mm:ss','SSSZ",
"yyyy-MM-dd'T'HH:mm:ss.SSSZZ",
"yyyy-MM-dd'T'HH:mm:ssSSSZ",
"yyyy-MM-dd'T'HH:mm:ssSSSZZ",
"yyyy-MM-dd'T'HH:mm:ssSSSZ"
What should be the correct format for transforming the datetime ?
date {
match => [ "startTime", "yyyy-MM-dd'T'HH:mm:ss'.'SSSZZ" ]
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.