Skip to content

Commit

Permalink
add multi_fields in aws cloudtrail fileset
Browse files Browse the repository at this point in the history
A keyword representation of the following fields was stored.  Adding
text multi_fields so it can be searched more easily.

- request_parameters
- response_elements
- additional_eventdata
- service_event_details

Closes elastic#18866
  • Loading branch information
leehinman committed Jun 5, 2020
1 parent 0a669eb commit 6bb15ae
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
* iptables {pull}18756[18756]
* Checkpoint {pull}18754[18754]
- Preserve case of http.request.method. ECS prior to 1.6 specified normalizing to lowercase, which lost information. Affects filesets: apache/access, elasticsearch/audit, iis/access, iis/error, nginx/access, nginx/ingress_controller, aws/elb, suricata/eve, zeek/http. {issue}18154[18154] {pull}18359[18359]
- In aws cloudtrail fileset add multi_fields for request_parameters, response_elements, additional_eventdata & service_event_details. {issue}18866[18866] {pull}XXX[XXX]

*Heartbeat*

Expand Down
28 changes: 28 additions & 0 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,13 @@ type: keyword
--
*`aws.cloudtrail.request_parameters.text`*::
+
--
type: text
--
*`aws.cloudtrail.response_elements`*::
+
--
Expand All @@ -1236,6 +1243,13 @@ type: keyword
--
*`aws.cloudtrail.response_elements.text`*::
+
--
type: text
--
*`aws.cloudtrail.additional_eventdata`*::
+
--
Expand All @@ -1245,6 +1259,13 @@ type: keyword
--
*`aws.cloudtrail.additional_eventdata.text`*::
+
--
type: text
--
*`aws.cloudtrail.request_id`*::
+
--
Expand Down Expand Up @@ -1341,6 +1362,13 @@ type: keyword
--
*`aws.cloudtrail.service_event_details.text`*::
+
--
type: text
--
*`aws.cloudtrail.shared_event_id`*::
+
--
Expand Down
12 changes: 12 additions & 0 deletions x-pack/filebeat/module/aws/cloudtrail/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,25 @@
type: keyword
description: >-
The parameters, if any, that were sent with the request.
multi_fields:
- name: text
type: text
- name: response_elements
type: keyword
description: >-
The response element for actions that make changes (create,
update, or delete actions).
multi_fields:
- name: text
type: text
- name: additional_eventdata
type: keyword
description: >-
Additional data about the event that was not part of the
request or response.
multi_fields:
- name: text
type: text
- name: request_id
type: keyword
description: >-
Expand Down Expand Up @@ -149,6 +158,9 @@
description: >-
Identifies the service event, including what triggered the
event and the result.
multi_fields:
- name: text
type: text
- name: shared_event_id
type: keyword
description: >-
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/aws/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bb15ae

Please sign in to comment.