-
Notifications
You must be signed in to change notification settings - Fork 438
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
Field formats specified in package not being applied in data view #2886
Comments
Pinging @elastic/fleet (Team:Fleet) |
From elastic/kibana#119527, Fleet no longer declares a list of fields on Kibana data views, therefore we do not prescriptively apply a format to package fields:
I believe the Beats documentation is old and does not take into account the above changes to how Kibana handles index pattern/data view fields now. Actually, the package spec does not even support In this case For fields that declared as I will move this to integrations repo for further discussion about cleaning up system field definitions (and maybe other packages too?). |
Pinging @elastic/integrations (Team:Integrations) |
Thanks for the background, @jen-huang. Some fields use a numeric type but look unconventional with the Kibana default numeric formatting, like PIDs or port numbers. Users are likely to note the change after migrating from Beats to Agent. Migrating existing fields using the 64-bit The past solution was to set the Related, I did open a separate issue proposing to add |
Doing this cleanup would be great. Currently there is no strict validation of the keys used "fields.yml" files. I think this stems from an incomplete definition of the keys in the spec. I noted this in elastic/package-spec#271 (comment). @jen-huang Perhaps we could get some help from your team telling us what fields are actually honored by Fleet and I can update the spec to reflect this. Then we can turn on strict validation and remove invalid keys from packages. |
Hi! We just realized that we haven't looked into this issue in a while. We're sorry! We're labeling this issue as |
Hi! We just realized that we haven't looked into this issue in a while. We're sorry! We're labeling this issue as |
Kibana version:
8.1.1
Describe the bug:
Data views created by Fleet at package install do not apply the
format
option, ifformat
is included on a field definition in the package config.Example: the
system
package defines the fieldsystem.memory.total
:https://github.com/elastic/package-storage/blob/production/packages/system/1.6.4/data_stream/memory/fields/fields.yml#L6
The field includes
format: bytes
, but the data view created in Kibana is not setting theBytes
format.Expected behavior:
The
format
specified in the package's field definitions would be applied in the Kibana data view:Any additional context:
Many ECS and non-ECS fields index as an Elasticsearch numeric type. However, when viewed in Kibana are better displayed as a String or a Byte value.
Examples:
12345
not12,345
Bytes
format:5GB
vs.5,123,456,789
The Beats docs also discuss the
format
field: https://github.com/elastic/beats/blob/main/docs/devguide/newdashboards.asciidoc#generate-index-patternThe text was updated successfully, but these errors were encountered: