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

Enrichments normalize fix #1608

Merged
merged 14 commits into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Thanks, you're awesome :-) -->
* Removing incorrect `hash` reuses. #1604
* Updating `pe` order to correct nesting. #1605
* Removing incorrect `pe` reuses. #1606
* Correcting `enrichments` to an `array` type. #1608

#### Added

Expand Down
3 changes: 3 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7768,6 +7768,9 @@ A list of associated indicators objects enriching the event, and the context of
type: nested


Note: this field should contain an array of values.





Expand Down
2 changes: 1 addition & 1 deletion experimental/generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.0.0-dev+exp,true,source,source.user.name.text,match_only_text,core,,a.einstein,Short name or login of the user.
8.0.0-dev+exp,true,source,source.user.roles,keyword,extended,array,"[""kibana_admin"", ""reporting_user""]",Array of user roles at the time of the event.
8.0.0-dev+exp,true,span,span.id,keyword,extended,,3ff9a8981b7ccd5a,Unique identifier of the span within the scope of its trace.
8.0.0-dev+exp,true,threat,threat.enrichments,nested,extended,,,List of objects containing indicators enriching the event.
8.0.0-dev+exp,true,threat,threat.enrichments,nested,extended,array,,List of objects containing indicators enriching the event.
8.0.0-dev+exp,true,threat,threat.enrichments.indicator,object,extended,,,Object containing indicators enriching the event.
8.0.0-dev+exp,true,threat,threat.enrichments.indicator.as.number,long,extended,,15169,Unique number allocated to the autonomous system.
8.0.0-dev+exp,true,threat,threat.enrichments.indicator.as.organization.name,keyword,extended,,Google LLC,Organization name.
Expand Down
3 changes: 2 additions & 1 deletion experimental/generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12837,7 +12837,8 @@ threat.enrichments:
flat_name: threat.enrichments
level: extended
name: enrichments
normalize: []
normalize:
- array
short: List of objects containing indicators enriching the event.
type: nested
threat.enrichments.indicator:
Expand Down
3 changes: 2 additions & 1 deletion experimental/generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14922,7 +14922,8 @@ threat:
flat_name: threat.enrichments
level: extended
name: enrichments
normalize: []
normalize:
- array
short: List of objects containing indicators enriching the event.
type: nested
threat.enrichments.indicator:
Expand Down
2 changes: 1 addition & 1 deletion generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.0.0-dev,true,source,source.user.name.text,match_only_text,core,,a.einstein,Short name or login of the user.
8.0.0-dev,true,source,source.user.roles,keyword,extended,array,"[""kibana_admin"", ""reporting_user""]",Array of user roles at the time of the event.
8.0.0-dev,true,span,span.id,keyword,extended,,3ff9a8981b7ccd5a,Unique identifier of the span within the scope of its trace.
8.0.0-dev,true,threat,threat.enrichments,nested,extended,,,List of objects containing indicators enriching the event.
8.0.0-dev,true,threat,threat.enrichments,nested,extended,array,,List of objects containing indicators enriching the event.
8.0.0-dev,true,threat,threat.enrichments.indicator,object,extended,,,Object containing indicators enriching the event.
8.0.0-dev,true,threat,threat.enrichments.indicator.as.number,long,extended,,15169,Unique number allocated to the autonomous system.
8.0.0-dev,true,threat,threat.enrichments.indicator.as.organization.name,keyword,extended,,Google LLC,Organization name.
Expand Down
3 changes: 2 additions & 1 deletion generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8649,7 +8649,8 @@ threat.enrichments:
flat_name: threat.enrichments
level: extended
name: enrichments
normalize: []
normalize:
- array
short: List of objects containing indicators enriching the event.
type: nested
threat.enrichments.indicator:
Expand Down
3 changes: 2 additions & 1 deletion generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10358,7 +10358,8 @@ threat:
flat_name: threat.enrichments
level: extended
name: enrichments
normalize: []
normalize:
- array
short: List of objects containing indicators enriching the event.
type: nested
threat.enrichments.indicator:
Expand Down
2 changes: 2 additions & 0 deletions schemas/threat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
description: >
A list of associated indicators objects enriching the event, and the context of
that association/enrichment.
normalize:
- array

- name: enrichments.indicator
level: extended
Expand Down