Ingest Pipeline that extracts metadata fields into new field

I'm trying to create an Ingest Pipeline in Elasticsearch 7.4 that will allow me to to take the value of the "_id" metadata field and copy it into a new field. I've tried using the "set" processor to do this, but I'm unable to do so. Below is the ingest pipeline settings

PUT _ingest/pipeline/<pipeline name>
{
"description":  "Move value from _id metadata field  to new_field",
"processors": [
{
    "set": {
         "field": "new_field",
         "value": "{{_id}}"
}
}
]
}


}

Can you try using "value": "{{{_id}}}"?

To access field values you need to use triple curly brackets. [documentation]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.