I've seen several topics with the same problem, however none of the solutions I found worked for me and it's making me crazy because I am sure it should be very simple.
To explain the problem, I am using a ruby filter to extract data from a long line based on where the information is on the line and one of these data is a datetime.
For example :
Hewever, this makes the following output with this format:
"heading": {
"date": "2022-02-01-00.00.00"
}
I want it to be in this format : "date": "2022-02-01T00:00:00.000Z" (the same as @timestamp)
I tried to use date filter or strftime in ruby but I can't make it work.
Thanks for your help and sorry if I should have find in other topics
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.