Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
philippkahr opened this issue Sep 20, 2024 · 3 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Ingest Node Pipelines Ingest node pipelines management good first issue low hanging fruit Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@philippkahr
Copy link
Contributor

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.

@philippkahr philippkahr transferred this issue from elastic/elasticsearch Sep 20, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Sep 20, 2024
@sabarasaba sabarasaba added good first issue low hanging fruit Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more Feature:Ingest Node Pipelines Ingest node pipelines management labels Sep 20, 2024
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Sep 20, 2024
@swapanmandi
Copy link

You can use- "value": "{{some_variable}}"

@alisonelizabeth alisonelizabeth added the bug Fixes for quality problems that affect the customer experience label Sep 20, 2024
@philippkahr
Copy link
Contributor Author

@swapanmandi no I cannot. This sets as a string, I want to set it to 1 so it is treated as a number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Ingest Node Pipelines Ingest node pipelines management good first issue low hanging fruit Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

No branches or pull requests

5 participants