How can i add field in ingest pipeline:

PUT _ingest/pipeline/test
{
  "description" : "fscrawler res2",
  "processors" : [
    {
      "grok": { 
        "field": "content", 
          "patterns": ["(^|\\s)(?<phone>(\\+\\d{1,3}[- ]?)?\\d{10})($|\\s)"] 
        }
      },
      {
      "grok": { 
        "field": "path.virtual", 
          "patterns":  ["\/%{DATA:name1} %{WORD:Surname}\\s\\w%{GREEDYDATA}"] 
        }
        }
        
        
      
      
  ]
}

This is my ingest pipeline I want to combine name and surname field into one field

A guess (not tested) from https://www.elastic.co/guide/en/elasticsearch/reference/master/set-processor.html

PUT _ingest/pipeline/fullname
{
  "processors": [
    {
      "set": {
        "field": "fullname",
        "value": "{{firstname}} {{lastname}}"
      }
    }
  ]
}

Thank you so much sir:innocent:

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