Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/aws/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.43.0"
changes:
- description: Set `event.type` and `event.action` fields in vpcflow logs.
type: enhancement
link: https://github.com/elastic/integrations/pull/13099
- version: "2.42.0"
changes:
- description: Add support to configure start_timestamp and ignore_older configurations for AWS S3 backed inputs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"version": "8.11.0"
},
"event": {
"action": "ACCEPT",
"category": [
"network"
],
Expand All @@ -44,7 +45,8 @@
"outcome": "success",
"start": "2016-10-31T11:35:08.000Z",
"type": [
"connection"
"connection",
"allowed"
]
},
"network": {
Expand Down Expand Up @@ -195,6 +197,7 @@
"version": "8.11.0"
},
"event": {
"action": "ACCEPT",
"category": [
"network"
],
Expand All @@ -204,7 +207,8 @@
"outcome": "success",
"start": "2014-12-14T04:06:50.000Z",
"type": [
"connection"
"connection",
"allowed"
]
},
"network": {
Expand Down Expand Up @@ -294,6 +298,7 @@
"version": "8.11.0"
},
"event": {
"action": "REJECT",
"category": [
"network"
],
Expand All @@ -303,7 +308,8 @@
"outcome": "failure",
"start": "2014-12-14T04:06:50.000Z",
"type": [
"connection"
"connection",
"denied"
]
},
"network": {
Expand Down Expand Up @@ -375,6 +381,7 @@
"version": "8.11.0"
},
"event": {
"action": "ACCEPT",
"category": [
"network"
],
Expand All @@ -384,7 +391,8 @@
"outcome": "success",
"start": "2015-05-29T16:30:27.000Z",
"type": [
"connection"
"connection",
"allowed"
]
},
"network": {
Expand Down Expand Up @@ -474,6 +482,7 @@
"version": "8.11.0"
},
"event": {
"action": "REJECT",
"category": [
"network"
],
Expand All @@ -483,7 +492,8 @@
"outcome": "failure",
"start": "2015-05-29T16:31:34.000Z",
"type": [
"connection"
"connection",
"denied"
]
},
"network": {
Expand Down Expand Up @@ -512,4 +522,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"version": "8.11.0"
},
"event": {
"action": "ACCEPT",
"category": [
"network"
],
Expand All @@ -48,7 +49,8 @@
"outcome": "success",
"start": "2019-08-26T19:47:55.000Z",
"type": [
"connection"
"connection",
"allowed"
]
},
"network": {
Expand Down Expand Up @@ -177,4 +179,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"version": "8.11.0"
},
"event": {
"action": "REJECT",
"category": [
"network"
],
Expand All @@ -54,7 +55,8 @@
"outcome": "failure",
"start": "1975-03-14T03:34:26.000Z",
"type": [
"connection"
"connection",
"denied"
]
},
"network": {
Expand Down Expand Up @@ -102,4 +104,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
]
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ processors:
field: event.outcome
value: failure
if: ctx.aws?.vpcflow?.action == "REJECT"
- append:
field: event.type
value: allowed
if: ctx.aws?.vpcflow?.action == "ACCEPT"
- append:
field: event.type
value: denied
if: ctx.aws?.vpcflow?.action == "REJECT"
- set:
field: event.action
copy_from: aws.vpcflow.action
ignore_empty_value: true
- rename:
field: aws.vpcflow.srcaddr
target_field: source.address
Expand Down
30 changes: 16 additions & 14 deletions packages/aws/data_stream/vpcflow/sample_event.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"@timestamp": "2014-12-14T04:07:50.000Z",
"agent": {
"ephemeral_id": "1ffa6099-2893-4e54-8f41-e84bf2244161",
"id": "acba78ef-1401-4689-977c-d8c2e5d6a8fa",
"name": "docker-fleet-agent",
"ephemeral_id": "884f01cb-3cd3-4f05-a4c3-c97c0eccb33d",
"id": "6f7e7793-7439-41de-9909-93ced0496b71",
"name": "elastic-agent-64848",
"type": "filebeat",
"version": "8.10.1"
"version": "8.18.0"
},
"aws": {
"s3": {
"bucket": {
"arn": "arn:aws:s3:::elastic-package-aws-bucket-63461",
"name": "elastic-package-aws-bucket-63461"
"arn": "arn:aws:s3:::elastic-package-aws-bucket-51558",
"name": "elastic-package-aws-bucket-51558"
},
"object": {
"key": "extra-samples.log"
Expand All @@ -34,7 +34,7 @@
},
"data_stream": {
"dataset": "aws.vpcflow",
"namespace": "ep",
"namespace": "18794",
"type": "logs"
},
"destination": {
Expand Down Expand Up @@ -64,32 +64,34 @@
"version": "8.11.0"
},
"elastic_agent": {
"id": "acba78ef-1401-4689-977c-d8c2e5d6a8fa",
"snapshot": false,
"version": "8.10.1"
"id": "6f7e7793-7439-41de-9909-93ced0496b71",
"snapshot": true,
"version": "8.18.0"
},
"event": {
"action": "ACCEPT",
"agent_id_status": "verified",
"category": [
"network"
],
"dataset": "aws.vpcflow",
"end": "2014-12-14T04:07:50.000Z",
"ingested": "2023-11-07T14:31:30Z",
"ingested": "2025-03-13T10:01:27Z",
"kind": "event",
"original": "2 123456789010 eni-1235b8ca123456789 89.160.20.156 89.160.20.156 20641 22 6 20 4249 1418530010 1418530070 ACCEPT OK",
"outcome": "success",
"start": "2014-12-14T04:06:50.000Z",
"type": [
"connection"
"connection",
"allowed"
]
},
"input": {
"type": "aws-s3"
},
"log": {
"file": {
"path": "https://elastic-package-aws-bucket-63461.s3.us-east-1.amazonaws.com/extra-samples.log"
"path": "https://elastic-package-aws-bucket-51558.s3.us-east-1.amazonaws.com/extra-samples.log"
},
"offset": 338
},
Expand Down Expand Up @@ -137,4 +139,4 @@
"forwarded",
"aws-vpcflow"
]
}
}
28 changes: 15 additions & 13 deletions packages/aws/docs/vpcflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,17 @@ An example event for `vpcflow` looks as following:
{
"@timestamp": "2014-12-14T04:07:50.000Z",
"agent": {
"ephemeral_id": "1ffa6099-2893-4e54-8f41-e84bf2244161",
"id": "acba78ef-1401-4689-977c-d8c2e5d6a8fa",
"name": "docker-fleet-agent",
"ephemeral_id": "884f01cb-3cd3-4f05-a4c3-c97c0eccb33d",
"id": "6f7e7793-7439-41de-9909-93ced0496b71",
"name": "elastic-agent-64848",
"type": "filebeat",
"version": "8.10.1"
"version": "8.18.0"
},
"aws": {
"s3": {
"bucket": {
"arn": "arn:aws:s3:::elastic-package-aws-bucket-63461",
"name": "elastic-package-aws-bucket-63461"
"arn": "arn:aws:s3:::elastic-package-aws-bucket-51558",
"name": "elastic-package-aws-bucket-51558"
},
"object": {
"key": "extra-samples.log"
Expand All @@ -162,7 +162,7 @@ An example event for `vpcflow` looks as following:
},
"data_stream": {
"dataset": "aws.vpcflow",
"namespace": "ep",
"namespace": "18794",
"type": "logs"
},
"destination": {
Expand Down Expand Up @@ -192,32 +192,34 @@ An example event for `vpcflow` looks as following:
"version": "8.11.0"
},
"elastic_agent": {
"id": "acba78ef-1401-4689-977c-d8c2e5d6a8fa",
"snapshot": false,
"version": "8.10.1"
"id": "6f7e7793-7439-41de-9909-93ced0496b71",
"snapshot": true,
"version": "8.18.0"
},
"event": {
"action": "ACCEPT",
"agent_id_status": "verified",
"category": [
"network"
],
"dataset": "aws.vpcflow",
"end": "2014-12-14T04:07:50.000Z",
"ingested": "2023-11-07T14:31:30Z",
"ingested": "2025-03-13T10:01:27Z",
"kind": "event",
"original": "2 123456789010 eni-1235b8ca123456789 89.160.20.156 89.160.20.156 20641 22 6 20 4249 1418530010 1418530070 ACCEPT OK",
"outcome": "success",
"start": "2014-12-14T04:06:50.000Z",
"type": [
"connection"
"connection",
"allowed"
]
},
"input": {
"type": "aws-s3"
},
"log": {
"file": {
"path": "https://elastic-package-aws-bucket-63461.s3.us-east-1.amazonaws.com/extra-samples.log"
"path": "https://elastic-package-aws-bucket-51558.s3.us-east-1.amazonaws.com/extra-samples.log"
},
"offset": 338
},
Expand Down
2 changes: 1 addition & 1 deletion packages/aws/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.3.1
name: aws
title: AWS
version: 2.42.0
version: 2.43.0
description: Collect logs and metrics from Amazon Web Services (AWS) with Elastic Agent.
type: integration
categories:
Expand Down