Set the value of a field to another field using elastic search processor


#1

i am trying to set a the value of a field to another field.
Like i have a field "date" and "name". i want the set the value of these fields to another field "log"
I am using set processor:
{
"set": {
"field": "log",
"value": "%{date} %{name}"
}
}

this does not work and set s the value of "log" as "%{date} %{name}" instead of the value in "date" and "name".
Is there a way to do this?


(Martijn Van Groningen) #2

You're using the wrong syntax. Read this: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/accessing-data-in-pipelines.html#accessing-template-fields


#3

Thank you very much. I missed that section of the docs.
It works now :slight_smile:


(system) #4

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