I'm trying to calculate the time value inside elastic pipeline and set this value for field. I need something like this :
curl -X PUT "localhost:9200/_ingest/pipeline/time-pipeline?pretty" -H 'Content-Type: application/json' -d'
{
"description" : "My optional pipeline description",
"processors" : [
{
"set" : {
"description" : "My optional processor description",
"field": "end_time",
"value":"script": {
"source": "doc['@timestamp'].value - 30s",
}
,
},
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.