Skip to content
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

[BUG] add_cloud_metadata does not populate host.type correctly #10968

Closed
webmat opened this issue Feb 27, 2019 · 1 comment
Closed

[BUG] add_cloud_metadata does not populate host.type correctly #10968

webmat opened this issue Feb 27, 2019 · 1 comment

Comments

@webmat
Copy link
Contributor

webmat commented Feb 27, 2019

On GCE, the add_cloud_metadata processor populates host.type with a value such as this

projects/NNN/machineTypes/n1-standard-2

In ECS, host.type is intended to be populated with short name like n1-standard-2. Not an account-specific or a fully qualified (e.g. regions / dc / resource) URI.

Could we adjust the processor to contain the short value?

@andrewkroh
Copy link
Member

add_cloud_metadata doesn't populate host.type. However it does populate cloud.machine.type with a value that's very similar to what's given above. Additionally cloud.availability_zone is populated with projects/111111111111/zones/us-east1-b.

What we can do is trim the leading parts of those values for the GCE provider.

andrewkroh added a commit to andrewkroh/beats that referenced this issue Feb 28, 2019
This removes the project info from the `cloud.machine.type` and `cloud.availability_zone` fields
that are added to the add_cloud_metadata processor for Google Compute Engine (GCE).

Fixes  elastic#10968
andrewkroh added a commit that referenced this issue Mar 1, 2019
This removes the project info from the cloud.machine.type and cloud.availability_zone fields
that are added to the add_cloud_metadata processor for Google Compute Engine (GCE).

Fixes #10968, #10775 (docs)
andrewkroh added a commit to andrewkroh/beats that referenced this issue Mar 3, 2019
This removes the project info from the cloud.machine.type and cloud.availability_zone fields
that are added to the add_cloud_metadata processor for Google Compute Engine (GCE).

Fixes elastic#10968, elastic#10775 (docs)

(cherry picked from commit f527cd5)
andrewkroh added a commit that referenced this issue Mar 6, 2019
This removes the project info from the cloud.machine.type and cloud.availability_zone fields
that are added to the add_cloud_metadata processor for Google Compute Engine (GCE).

Fixes #10968, #10775 (docs)

(cherry picked from commit f527cd5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants