Skip to content

Commit

Permalink
Cherry-pick elastic#20689 to 7.9: Rename cloud.provider to azure in…
Browse files Browse the repository at this point in the history
…stead of `az` in add_cloud_metadata processor (elastic#20823)

* Rename cloud.provider to `azure` instead of `az` in add_cloud_metadata processor (elastic#20689)

* mofidy doc

* rename azure provider in cloud data

* changelo

(cherry picked from commit d34d1b6)

* changelog
  • Loading branch information
narph committed Aug 31, 2020
1 parent f0fe53a commit ce01358
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix `setup.dashboards.index` setting not working. {pull}17749[17749]
- Fix Elasticsearch license endpoint URL referenced in error message. {issue}17880[17880] {pull}18030[18030]
- Change `decode_json_fields` processor, to merge parsed json objects with existing objects in the event instead of fully replacing them. {pull}17958[17958]
- Rename cloud.provider `az` value to `azure` inside the add_cloud_metadata processor. {pull}20689[20689]
- Add missing country_name geo field in `add_host_metadata` and `add_observer_metadata` processors. {issue}20796[20796] {pull}20811[20811]

*Auditbeat*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ _Azure Virtual Machine_
-------------------------------------------------------------------------------
{
"cloud": {
"provider": "az",
"provider": "azure",
"instance.id": "04ab04c3-63de-4709-a9f9-9ab8c0411d5e",
"instance.name": "test-az-vm",
"machine.type": "Standard_D3_v2",
Expand Down
2 changes: 1 addition & 1 deletion libbeat/processors/add_cloud_metadata/provider_azure_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var azureVMMetadataFetcher = provider{
return out
}

fetcher, err := newMetadataFetcher(config, "az", azHeaders, metadataHost, azSchema, azMetadataURI)
fetcher, err := newMetadataFetcher(config, "azure", azHeaders, metadataHost, azSchema, azMetadataURI)
return fetcher, err
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestRetrieveAzureMetadata(t *testing.T) {

expected := common.MapStr{
"cloud": common.MapStr{
"provider": "az",
"provider": "azure",
"instance": common.MapStr{
"id": "04ab04c3-63de-4709-a9f9-9ab8c0411d5e",
"name": "test-az-vm",
Expand Down

0 comments on commit ce01358

Please sign in to comment.