…ic#8171)
* [hadoop]: migration with yq
* [haproxy]: migration with yq
* [ibmmq]: migration with yq
* [iis]: migration with yq
* [influxdb]: migration with yq
* [kafka]: migration with yq
* [kafka_log]: migration with yq
* [memcached]: migration with yq
* [microsoft_sqlserver]: migration with yq
* [mongodb]: migration with yq
* [mysql]: migration with yq
* [nagios_xi]: migration with yq
* [nginx]: migration with yq
* [golang] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 2.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/golang
* [hadoop] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/hadoop
* [jolokia] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 2.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/jolokia_input
* [kafka_log] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/kafka_log
* [memcached] - change to format_version 3.0.0
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Added
'owner.type: elastic' to package manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/memcached
* [iis] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/iis
* [influxdb] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/influxdb
* [kafka] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/kafka
* [microsoft_sqlserver]: migration with yq
* [microsoft_sqlserver] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/microsoft_sqlserver
* [mongodb] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/mongodb
* [mysql] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/mysql
* [nginx] - removed dotted YAML keys from manifest
The format_version in the package manifest changed from 1.0.0 to 3.0.0. Removed
dotted YAML keys from package manifest. Added 'owner.type: elastic' to package
manifest.
[git-generate]
go run github.com/andrewkroh/go-examples/ecs-update@latest -v -format-version=3.0.0 -skip-format -fix-dotted-yaml-keys -add-owner-type packages/nginx
* Add validation.yml
* Format packages and quote fields where necessary
* revert changes for packages for which v3 migration failed
* [hadoop,haproxy,iis,mongodb]: remove duplicates from agent.yml instead of ecs.yml
* Fix PR number in changelog
* Fix inconsistency w/ elastic-build
* [mongodb]: Add dimension field which was removed during dedup of fields
* quote fields where necessary
* Add release field to data stream's manifest if removed from fields
* Quote index.mapping.dimension_fields.limit to avoid getting changed by ep format
* Revert "Quote index.mapping.dimension_fields.limit to avoid getting changed by ep format"
This reverts commit 37b2f20cd11e50f1700273891269b78f1a1a382a.
* Add comment
* [mongodb]: revert changes package-spec v3 migration
* [influxdb]: revert changes package-spec v3 migration
* remove validation.yml for package which are not migrated to v3
* remove comment
* [hadoop]: update definition for tags
* remove release: beta
Migrate a batch of packages from v1/v2 to v3 package-spec. Used the following scripts and some manual changes to generate the changes in this PR:
yq_hack.zsh
ecs-update.zsh
And another Go program to write the validation.yml by parsing the elastic-package lint errors.
Then I hooked this scripts to run with:
Another variation of the above script:
As I am creating a batch of 15 packages per migration, I am using a for loop. In case the migration is not possible for some packages, I put it in the first case to skip them.
Proposed commit message
Migrate packages owned by obs-infraobs-integrations but few couldn't be migrated. Marking them as follows:
Please see the comment #8171 (comment) in this PR itself to understand why some packages couldn't be migrated and also learn about the challenges faced when migrating.
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Relates to #8170
Screenshots