diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 37a3366318f..53ec1c7dd19 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -464,6 +464,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add istiod metricset. {pull}21519[21519] - Release `add_cloudfoundry_metadata` as GA. {pull}21525[21525] - Add support for OpenStack SSL metadata APIs in `add_cloud_metadata`. {pull}21590[21590] +- Add cloud.account.id for GCP into add_cloud_metadata processor. {pull}21776[21776] - Add proxy metricset for istio module. {pull}21751[21751] *Auditbeat* diff --git a/libbeat/processors/add_cloud_metadata/provider_google_gce.go b/libbeat/processors/add_cloud_metadata/provider_google_gce.go index 0fe69e1998d..c17c1dfe2bd 100644 --- a/libbeat/processors/add_cloud_metadata/provider_google_gce.go +++ b/libbeat/processors/add_cloud_metadata/provider_google_gce.go @@ -69,6 +69,9 @@ var gceMetadataFetcher = provider{ "project": s.Object{ "id": c.Str("projectId"), }, + "account": s.Object{ + "id": c.Str("projectId"), + }, }.ApplyTo(out, project) } diff --git a/libbeat/processors/add_cloud_metadata/provider_google_gce_test.go b/libbeat/processors/add_cloud_metadata/provider_google_gce_test.go index eccc07d4b30..0c810fe7a29 100644 --- a/libbeat/processors/add_cloud_metadata/provider_google_gce_test.go +++ b/libbeat/processors/add_cloud_metadata/provider_google_gce_test.go @@ -152,6 +152,9 @@ func TestRetrieveGCEMetadata(t *testing.T) { expected := common.MapStr{ "cloud": common.MapStr{ + "account": common.MapStr{ + "id": "test-dev", + }, "provider": "gcp", "instance": common.MapStr{ "id": "3910564293633576924",