Here is the snippet, the date in load file comes as string as 2020-02-06-07.51.19.413216, we need to load it to elastic in format yyyyMMdd. But the below code only converts String to date and not the format.
filter {
date {
match => ["OPEN_DATE","yyyyMMdd"]
target => "OPEN_DATE"
}
}
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.