Parameters for Scripted Fields #19716
Labels
Feature:Kibana Management
Feature label for Data Views, Advanced Setting, Saved Object management pages
impact:needs-assessment
Product and/or Engineering needs to evaluate the impact of the change.
loe:small
Small Level of Effort
painless
painless
Expose parameters for scripted fields as documented in the Search API reference.
The UI would allow adding a dynamic form field with a "Add parameter" button. This would create two text input controls, specifying the parameter name and value. Maybe there's a performance reason to set a limit on the maximum number of fields.
For the backend field definition in the
fields
attribute of the index pattern, I recommend simply adding aparams
object like so:My particular use case is that I'm a core developer of RockNSM and I want to create a calculated field that depends on both the schema (which is static) and the deployment (which changes every install). Namely, I have to be able to build a URL field given the record data and point to an IP/hostname that depends on the deployment.
Short of #16252 with the granularity of individual field manipulation parameters would make my life a lot easier. The workd around is:
fields
andfieldFormatMap
data, decode them to JSONP.S. ~ Not likely, but I'll give you a bonus 🍄 (<-- GitHub doesn't have a 1UP) if you can make this by 6.3 or a patch release soon thereafter.
The text was updated successfully, but these errors were encountered: