Skip to content

Commit d6c9e2c

Browse files
authored
aws: retain CloudTrail sessionCredentialFromConsole field (#16098)
1 parent bb632b7 commit d6c9e2c

File tree

8 files changed

+17
-1
lines changed

8 files changed

+17
-1
lines changed

packages/aws/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "4.6.0"
3+
changes:
4+
- description: Retain CloudTrail `sessionCredentialFromConsole` field as `aws.cloudtrail.session_credential_from_console`.
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/16098
27
- version: "4.5.0"
38
changes:
49
- description: Prevent updating fleet health status to degraded when the HTTPJSON template value evaluation is empty.

packages/aws/data_stream/cloudtrail/_dev/test/pipeline/test-delete-web-acl-json.log-expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"recipient_account_id": "000000000",
2828
"request_id": "14743001-eef4-4746-b324-92b3d5f294f4",
2929
"request_parameters": "{scope=REGIONAL, name=TestWebAcl, lockToken=6d67ea01-9048-4ab5-addf-c5da40e9b182, id=a95cc6a5-b6e3-42d3-a3c0-992b2f8119d5}",
30+
"session_credential_from_console": "true",
3031
"user_identity": {
3132
"access_key_id": "ACCESSKEYID",
3233
"arn": "arn:aws:iam::000000000:user/[email protected]",

packages/aws/data_stream/cloudtrail/_dev/test/pipeline/test-terminate-session-json.log-expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"request_id": "695e60be-fe04-417d-9977-491ec28bbbb6",
2828
"request_parameters": "{sessionId=root-5hvouhyykagjjk3f6glxk8o6bu}",
2929
"response_elements": "{sessionId=root-5hvouhyykagjjk3f6glxk8o6bu}",
30+
"session_credential_from_console": "true",
3031
"user_identity": {
3132
"access_key_id": "ACCESSKEY",
3233
"arn": "arn:aws:iam::00000000000:root",

packages/aws/data_stream/cloudtrail/_dev/test/pipeline/test-tls-details-json.log-expected.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
"recipient_account_id": "001122334455",
242242
"request_id": "EXAMPLE",
243243
"request_parameters": "{Host=s3express-control.eu-west-1.amazonaws.com}",
244+
"session_credential_from_console": "true",
244245
"user_identity": {
245246
"access_key_id": "REDACTED",
246247
"arn": "arn:aws:sts::001122334455:assumed-role/Some_AWS_Role/[email protected]",

packages/aws/data_stream/cloudtrail/elasticsearch/ingest_pipeline/default.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,11 @@ processors:
828828
field: json.userIdentity.sessionContext.sessionIssuer.accountId
829829
target_field: aws.cloudtrail.user_identity.session_context.session_issuer.account_id
830830
ignore_failure: true
831+
- rename:
832+
field: json.sessionCredentialFromConsole
833+
target_field: aws.cloudtrail.session_credential_from_console
834+
ignore_missing: true
835+
ignore_failure: true
831836
- rename:
832837
field: json.userIdentity.invokedBy
833838
target_field: aws.cloudtrail.user_identity.invoked_by

packages/aws/data_stream/cloudtrail/fields/fields.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@
189189
type: flattened
190190
description: >-
191191
Additional insight details.
192+
- name: session_credential_from_console
193+
type: keyword
192194
- name: related.entity
193195
description: "A collection of all entity identifiers associated with the document. \nIf the document contains multiple entities, identifiers for each will be included.\nExample identifiers include(but not limited to) cloud resource IDs, ARNs, email addresses,\nand hostnames. \n"
194196
type: keyword

packages/aws/docs/cloudtrail.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Refer to the following [document](https://www.elastic.co/guide/en/ecs/current/ec
109109
| aws.cloudtrail.response_elements.text | Multi-field of `aws.cloudtrail.response_elements`. | text |
110110
| aws.cloudtrail.service_event_details | Identifies the service event, including what triggered the event and the result. | keyword |
111111
| aws.cloudtrail.service_event_details.text | Multi-field of `aws.cloudtrail.service_event_details`. | text |
112+
| aws.cloudtrail.session_credential_from_console | | keyword |
112113
| aws.cloudtrail.shared_event_id | GUID generated by CloudTrail to uniquely identify CloudTrail events from the same AWS action that is sent to different AWS accounts. | keyword |
113114
| aws.cloudtrail.user_identity.access_key_id | The access key ID that was used to sign the request. | keyword |
114115
| aws.cloudtrail.user_identity.arn | The Amazon Resource Name (ARN) of the principal that made the call. | keyword |

packages/aws/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 3.3.2
22
name: aws
33
title: AWS
4-
version: "4.5.0"
4+
version: "4.6.0"
55
description: Collect logs and metrics from Amazon Web Services (AWS) with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)