Skip to content

Commit 7074dea

Browse files
authored
Standardize additional cloud metadata (#816)
1 parent a59e76c commit 7074dea

File tree

10 files changed

+233
-0
lines changed

10 files changed

+233
-0
lines changed

CHANGELOG.next.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Thanks, you're awesome :-) -->
2222

2323
* Add architecture and imphash for PE field set. (#763)
2424
* Added `agent.build.*` for extended agent version information. (#764)
25+
* Added more account and project cloud metadata. (#816)
2526

2627
#### Improvements
2728

code/go/ecs/cloud.go

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/field-details.asciidoc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,21 @@ example: `666777888999`
489489

490490
// ===============================================================
491491

492+
| cloud.account.name
493+
| The cloud account name or alias used to identify different entities in a multi-tenant environment.
494+
495+
Examples: AWS account name, Google Cloud ORG display name.
496+
497+
type: keyword
498+
499+
500+
501+
example: `elastic-dev`
502+
503+
| extended
504+
505+
// ===============================================================
506+
492507
| cloud.availability_zone
493508
| Availability zone in which this host is running.
494509

@@ -541,6 +556,36 @@ example: `t2.medium`
541556

542557
// ===============================================================
543558

559+
| cloud.project.id
560+
| The cloud project identifier.
561+
562+
Examples: Google Cloud Project id, Azure Project id.
563+
564+
type: keyword
565+
566+
567+
568+
example: `my-project`
569+
570+
| extended
571+
572+
// ===============================================================
573+
574+
| cloud.project.name
575+
| The cloud project name.
576+
577+
Examples: Google Cloud Project name, Azure Project name.
578+
579+
type: keyword
580+
581+
582+
583+
example: `my project`
584+
585+
| extended
586+
587+
// ===============================================================
588+
544589
| cloud.provider
545590
| Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean.
546591

generated/beats/fields.ecs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,16 @@
400400
401401
Examples: AWS account id, Google Cloud ORG Id, or other unique identifier.'
402402
example: 666777888999
403+
- name: account.name
404+
level: extended
405+
type: keyword
406+
ignore_above: 1024
407+
description: 'The cloud account name or alias used to identify different entities
408+
in a multi-tenant environment.
409+
410+
Examples: AWS account name, Google Cloud ORG display name.'
411+
example: elastic-dev
412+
default_field: false
403413
- name: availability_zone
404414
level: extended
405415
type: keyword
@@ -423,6 +433,24 @@
423433
ignore_above: 1024
424434
description: Machine type of the host machine.
425435
example: t2.medium
436+
- name: project.id
437+
level: extended
438+
type: keyword
439+
ignore_above: 1024
440+
description: 'The cloud project identifier.
441+
442+
Examples: Google Cloud Project id, Azure Project id.'
443+
example: my-project
444+
default_field: false
445+
- name: project.name
446+
level: extended
447+
type: keyword
448+
ignore_above: 1024
449+
description: 'The cloud project name.
450+
451+
Examples: Google Cloud Project name, Azure Project name.'
452+
example: my project
453+
default_field: false
426454
- name: provider
427455
level: extended
428456
type: keyword

generated/csv/fields.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
4343
1.6.0-dev,true,client,client.user.name,keyword,core,,albert,Short name or login of the user.
4444
1.6.0-dev,true,client,client.user.name.text,text,core,,albert,Short name or login of the user.
4545
1.6.0-dev,true,cloud,cloud.account.id,keyword,extended,,666777888999,The cloud account or organization id.
46+
1.6.0-dev,true,cloud,cloud.account.name,keyword,extended,,elastic-dev,The cloud account name.
4647
1.6.0-dev,true,cloud,cloud.availability_zone,keyword,extended,,us-east-1c,Availability zone in which this host is running.
4748
1.6.0-dev,true,cloud,cloud.instance.id,keyword,extended,,i-1234567890abcdef0,Instance ID of the host machine.
4849
1.6.0-dev,true,cloud,cloud.instance.name,keyword,extended,,,Instance name of the host machine.
4950
1.6.0-dev,true,cloud,cloud.machine.type,keyword,extended,,t2.medium,Machine type of the host machine.
51+
1.6.0-dev,true,cloud,cloud.project.id,keyword,extended,,my-project,The cloud project id.
52+
1.6.0-dev,true,cloud,cloud.project.name,keyword,extended,,my project,The cloud project name.
5053
1.6.0-dev,true,cloud,cloud.provider,keyword,extended,,aws,Name of the cloud provider.
5154
1.6.0-dev,true,cloud,cloud.region,keyword,extended,,us-east-1,Region in which this host is running.
5255
1.6.0-dev,true,container,container.id,keyword,core,,,Unique container id.

generated/ecs/ecs_flat.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,20 @@ cloud.account.id:
499499
normalize: []
500500
short: The cloud account or organization id.
501501
type: keyword
502+
cloud.account.name:
503+
dashed_name: cloud-account-name
504+
description: 'The cloud account name or alias used to identify different entities
505+
in a multi-tenant environment.
506+
507+
Examples: AWS account name, Google Cloud ORG display name.'
508+
example: elastic-dev
509+
flat_name: cloud.account.name
510+
ignore_above: 1024
511+
level: extended
512+
name: account.name
513+
normalize: []
514+
short: The cloud account name.
515+
type: keyword
502516
cloud.availability_zone:
503517
dashed_name: cloud-availability-zone
504518
description: Availability zone in which this host is running.
@@ -542,6 +556,32 @@ cloud.machine.type:
542556
normalize: []
543557
short: Machine type of the host machine.
544558
type: keyword
559+
cloud.project.id:
560+
dashed_name: cloud-project-id
561+
description: 'The cloud project identifier.
562+
563+
Examples: Google Cloud Project id, Azure Project id.'
564+
example: my-project
565+
flat_name: cloud.project.id
566+
ignore_above: 1024
567+
level: extended
568+
name: project.id
569+
normalize: []
570+
short: The cloud project id.
571+
type: keyword
572+
cloud.project.name:
573+
dashed_name: cloud-project-name
574+
description: 'The cloud project name.
575+
576+
Examples: Google Cloud Project name, Azure Project name.'
577+
example: my project
578+
flat_name: cloud.project.name
579+
ignore_above: 1024
580+
level: extended
581+
name: project.name
582+
normalize: []
583+
short: The cloud project name.
584+
type: keyword
545585
cloud.provider:
546586
dashed_name: cloud-provider
547587
description: Name of the cloud provider. Example values are aws, azure, gcp, or

generated/ecs/ecs_nested.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,20 @@ cloud:
653653
normalize: []
654654
short: The cloud account or organization id.
655655
type: keyword
656+
account.name:
657+
dashed_name: cloud-account-name
658+
description: 'The cloud account name or alias used to identify different entities
659+
in a multi-tenant environment.
660+
661+
Examples: AWS account name, Google Cloud ORG display name.'
662+
example: elastic-dev
663+
flat_name: cloud.account.name
664+
ignore_above: 1024
665+
level: extended
666+
name: account.name
667+
normalize: []
668+
short: The cloud account name.
669+
type: keyword
656670
availability_zone:
657671
dashed_name: cloud-availability-zone
658672
description: Availability zone in which this host is running.
@@ -696,6 +710,32 @@ cloud:
696710
normalize: []
697711
short: Machine type of the host machine.
698712
type: keyword
713+
project.id:
714+
dashed_name: cloud-project-id
715+
description: 'The cloud project identifier.
716+
717+
Examples: Google Cloud Project id, Azure Project id.'
718+
example: my-project
719+
flat_name: cloud.project.id
720+
ignore_above: 1024
721+
level: extended
722+
name: project.id
723+
normalize: []
724+
short: The cloud project id.
725+
type: keyword
726+
project.name:
727+
dashed_name: cloud-project-name
728+
description: 'The cloud project name.
729+
730+
Examples: Google Cloud Project name, Azure Project name.'
731+
example: my project
732+
flat_name: cloud.project.name
733+
ignore_above: 1024
734+
level: extended
735+
name: project.name
736+
normalize: []
737+
short: The cloud project name.
738+
type: keyword
699739
provider:
700740
dashed_name: cloud-provider
701741
description: Name of the cloud provider. Example values are aws, azure, gcp,

generated/elasticsearch/6/template.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@
220220
"id": {
221221
"ignore_above": 1024,
222222
"type": "keyword"
223+
},
224+
"name": {
225+
"ignore_above": 1024,
226+
"type": "keyword"
223227
}
224228
}
225229
},
@@ -247,6 +251,18 @@
247251
}
248252
}
249253
},
254+
"project": {
255+
"properties": {
256+
"id": {
257+
"ignore_above": 1024,
258+
"type": "keyword"
259+
},
260+
"name": {
261+
"ignore_above": 1024,
262+
"type": "keyword"
263+
}
264+
}
265+
},
250266
"provider": {
251267
"ignore_above": 1024,
252268
"type": "keyword"

generated/elasticsearch/7/template.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@
219219
"id": {
220220
"ignore_above": 1024,
221221
"type": "keyword"
222+
},
223+
"name": {
224+
"ignore_above": 1024,
225+
"type": "keyword"
222226
}
223227
}
224228
},
@@ -246,6 +250,18 @@
246250
}
247251
}
248252
},
253+
"project": {
254+
"properties": {
255+
"id": {
256+
"ignore_above": 1024,
257+
"type": "keyword"
258+
},
259+
"name": {
260+
"ignore_above": 1024,
261+
"type": "keyword"
262+
}
263+
}
264+
},
249265
"provider": {
250266
"ignore_above": 1024,
251267
"type": "keyword"

schemas/cloud.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,34 @@
6868
6969
Examples: AWS account id, Google Cloud ORG Id, or other unique
7070
identifier.
71+
72+
- name: account.name
73+
level: extended
74+
type: keyword
75+
example: elastic-dev
76+
short: The cloud account name.
77+
description: >
78+
The cloud account name or alias used to identify different entities in
79+
a multi-tenant environment.
80+
81+
Examples: AWS account name, Google Cloud ORG display name.
82+
83+
- name: project.id
84+
level: extended
85+
type: keyword
86+
example: my-project
87+
short: The cloud project id.
88+
description: >
89+
The cloud project identifier.
90+
91+
Examples: Google Cloud Project id, Azure Project id.
92+
93+
- name: project.name
94+
level: extended
95+
type: keyword
96+
example: my project
97+
short: The cloud project name.
98+
description: >
99+
The cloud project name.
100+
101+
Examples: Google Cloud Project name, Azure Project name.

0 commit comments

Comments
 (0)