-
Notifications
You must be signed in to change notification settings - Fork 439
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
[system] - Cleanup fields.yml files #8100
[system] - Cleanup fields.yml files #8100
Conversation
[git-generate] go run github.com/andrewkroh/fydler@eddf66dada2 -fix packages/system/**/fields/*yml cd packages/system elastic-package format
packages/system/data_stream/core/fields/ecs.yml:1:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/cpu/fields/ecs.yml:1:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/diskio/fields/ecs.yml:1:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/fsstat/fields/ecs.yml:1:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/load/fields/ecs.yml:1:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/memory/fields/ecs.yml:1:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/network/fields/ecs.yml:5:3 group is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/network/fields/ecs.yml:11:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/network/fields/ecs.yml:15:3 process is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/network/fields/ecs.yml:21:3 source is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/network/fields/ecs.yml:39:3 user is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process/fields/ecs.yml:1:3 process is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process/fields/ecs.yml:14:3 user is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process/fields/ecs.yml:18:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process_summary/fields/ecs.yml:5:3 group is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process_summary/fields/ecs.yml:11:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process_summary/fields/ecs.yml:15:3 process is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process_summary/fields/ecs.yml:21:3 source is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/process_summary/fields/ecs.yml:39:3 user is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/socket_summary/fields/ecs.yml:5:3 group is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/socket_summary/fields/ecs.yml:11:3 host is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/socket_summary/fields/ecs.yml:15:3 process is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/socket_summary/fields/ecs.yml:21:3 source is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact) packages/system/data_stream/socket_summary/fields/ecs.yml:39:3 user is declared with 'external: ecs' but this field does not exist in ECS version "v8.0.0" (ecsdefinitionfact)
[git-generate] cd packages/system elastic-package format
[git-generate] cd packages/system elastic-package changelog add --link '#8100' --next minor --type enhancement --description 'Modified the field definitions to reference ECS where possible and remove invalid field attributes.'
Add 'type' to workaround validation issues. See elastic/package-spec#634
🌐 Coverage report
|
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
@andrewkroh - As these changes are common across integrations, Do you recommend creating separate issues to make this change for the rest of the integrations by keeping this PR as a base ? |
@muthu-mps What do you mean by "keeping this PR as a base"? |
I mean applying this changes to the rest of the integrations which is not referencing the |
The change is for the most part entirely mechanical, so it should be easy to do the same to other packages. |
Move @timestamp to base-fields.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Package system - 1.41.0 containing this change is available at https://epr.elastic.co/search?package=system |
Proposed commit message
This cleans up the field definitions for the package.
Remove unnecessary attributes like
required
,level
,format
, etc.Use
external: ecs
for any field that exists in ECS.Remove
description
from field groups. The description does not get used by anything (not in docs, mappings, fleet).Remove duplicate field declarations.
Replace dotted YAML key
kibana.version
in manifest.yml.Checklist
changelog.yml
file.