Convert date before index need you make some change code when you indexing document, such as following Java code:
Date rawDate = new SimpleDateFormat('yyyymmdd).parse('20200924');
String newDate = new SimpleDateFormat('Mon dd yyyy).format(rawDate);
Convert date when quering need you make some painless script, which is a language similar to Java. Although Kibana provides interface to help you create scripted fields.
[2020-11-14T22:16:08,990][ERROR][logstash.filters.ruby ][main][a81999a732f4939fea3b072754eb61bc46abe723ddf4bf4bfa4435a07b09da48] Ruby exception occurred: undefined local variable or method `log_date' for #LogStash::Filters::Ruby:0x420cd67
[2020-11-14T22:33:00,647][ERROR][logstash.filters.ruby ][main][f60c6fd2ea6c1769405562d564f475d434cff8f60d85d2571597332021f0d998] Ruby exception occurred: undefined local variable or method `log_date' for #LogStash::Filters::Ruby:0x5e61d649
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.