I have logs from a Jenkins application and I need this LastCommitDate to be really a date, but it is a String
How can i transform it to a Date field? I need to transform even the past logs, so it will propably be needed to reindex but how to do it?
You can change the mapping for that field to type date and give it a format that matches your date string.
date
format
You will need to reindex or reingest your data once your mapping has changed.
Could you please give me an example for this?
© 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.