elastic / elastic/elastic-package
ECS Fields are not mapped properly in package mappings
- Dominant language
- Go
- Stars
- 72
- Forks
- 141
- Avg merge
- 19h 42m
- Merged PRs (30d)
- 55
Description
We have defined in ecs.yml in our fields directory, but they are not reflecting when we install the plugin into Kibana:
- external: ecs
name: vulnerability.id
- external: ecs
name: event.id
- external: ecs
name: vulnerability.result
- external: ecs
name: vulnerability.reference
- external: ecs
name: vulnerability.score.base
- external: ecs
name: vulnerability.score.version
Highlighting "vulnerability.score.base", which should be a float under ecs, is being mapped from our plugin as a keyword field instead:


I'm not sure if this is a bug or just a misconfiguration but any help you could give us would be great!
Just for quick reference from the ticket:
https://www.elastic.co/guide/en/ecs/current/ecs-vulnerability.html
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ecs.yml in the fields directory and trace how package mappings are produced when the plugin is installed into Kibana. Compare the declared ECS types with the resulting mappings; done means vulnerability.score.base is mapped as a float and the listed ECS fields resolve to their intended types instead of keyword.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100