Painless intentionally doesn't expose .now() style methods per Groovy to Painless; get current date time
You can get the milliseconds of the document's @timestamp field using the following doc['@timestamp'].value.getMillis()
Painless intentionally doesn't expose .now() style methods per Groovy to Painless; get current date time
You can get the milliseconds of the document's @timestamp field using the following doc['@timestamp'].value.getMillis()
© 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.