elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.72k stars 8.14k forks source link

Ingest Pipeline UI should allow to select the type of the field in the set processor #193512

Open philippkahr opened 4 hours ago

philippkahr commented 4 hours ago

Description

When adding a set processor through the JSON:

POST _ingest/pipeline/_simulate
{
  "docs": [
    {
      "_source": {
        "time": "abc"
      }
    }
  ],
  "pipeline": {
    "processors": [
      {
        "set": {
          "field": "number",
          "value": 1
        }
      }
    ]
  }
}

We can specify it to be a number by not adding quotes around the value. This now means that I get back a numerical field. However in the inges tpipeline UI regardless of what I put into the text box it will always be serialized as a string, forcing me to add an additional convert processor afterwards.

elasticmachine commented 4 hours ago

Pinging @elastic/kibana-management (Team:Kibana Management)