mutate { add_field => { "[date1]" => "2018-05-19" } }
ruby { code => "event.set('date2', Date.strptime(event.get('[date1]'), '%Y-%m-%d').strftime('%d/%b/%Y'))" }
does it. Error handling left as an exercise for the reader.
mutate { add_field => { "[date1]" => "2018-05-19" } }
ruby { code => "event.set('date2', Date.strptime(event.get('[date1]'), '%Y-%m-%d').strftime('%d/%b/%Y'))" }
does it. Error handling left as an exercise for the reader.
© 2020. All Rights Reserved - Elasticsearch
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.