working solution is:
"script": {
"lang": "groovy",
"inline": "ctx.mo_timestamp_server = Instant.now()",
"ignore_failure": false
}
painless doesn't support Instant.now()
processor set doesn't support correct formating and any ISO.. doesn't work
"set": {
"field": "mo_timestamp_server",
"value": "{{DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(_ingest.timestamp)}}"
}
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.