Skip to content

Commit

Permalink
[AWS] Add dimensions to firewall, transit gateway and vpn data streams (
Browse files Browse the repository at this point in the history
#6339)

* Add dimensions VPN.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Add dimensions transit gateway.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Add dimensions firewall.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Update version.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Update changelog.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Add 2 ecs dimension fields.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Remove cloud.availability_zone as dimension (not present)

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Update md.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Resolve conflict.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

---------

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
  • Loading branch information
constanca-m committed Jun 5, 2023
1 parent 69dbddf commit 67f52c8
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 1 deletion.
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: "1.38.3"
changes:
- description: Add dimension fields to firewall, transit gateway and vpn data streams.
type: enhancement
link: https://github.com/elastic/integrations/pull/6339
- version: "1.38.2"
changes:
- description: Add metric type to vpn, firewall and transit gateway data streams.
Expand Down
5 changes: 5 additions & 0 deletions packages/aws/data_stream/firewall_metrics/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: cloud
- external: ecs
name: cloud.account.id
dimension: true
- external: ecs
name: cloud.account.name
- external: ecs
Expand All @@ -14,6 +15,7 @@
name: cloud.provider
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: ecs.version
- external: ecs
Expand Down Expand Up @@ -60,3 +62,6 @@
name: container.labels
- external: ecs
name: container.name
- name: agent.id
external: ecs
dimension: true
4 changes: 4 additions & 0 deletions packages/aws/data_stream/firewall_metrics/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@
fields:
- name: AvailabilityZone
type: keyword
dimension: true
description: Availability Zone in the Region where the Network Firewall firewall is active.
- name: CustomAction
type: keyword
dimension: true
description: Dimension for a publish metrics custom action that you defined. You can define this for a rule action in a stateless rule group or for a stateless default action in a firewall policy.
- name: Engine
type: keyword
dimension: true
description: Rules engine that processed the packet. The value for this is either Stateful or Stateless.
- name: FirewallName
type: keyword
dimension: true
description: Name that you specified for the Network Firewall firewall.
- name: cloudwatch
type: group
Expand Down
5 changes: 5 additions & 0 deletions packages/aws/data_stream/transitgateway/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: cloud
- external: ecs
name: cloud.account.id
dimension: true
- external: ecs
name: cloud.account.name
- external: ecs
Expand All @@ -18,6 +19,7 @@
name: cloud.provider
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: ecs.version
- external: ecs
Expand Down Expand Up @@ -60,3 +62,6 @@
name: container.labels
- external: ecs
name: container.name
- name: agent.id
external: ecs
dimension: true
2 changes: 2 additions & 0 deletions packages/aws/data_stream/transitgateway/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
type: group
fields:
- name: TransitGateway
dimension: true
type: keyword
description: Filters the metric data by transit gateway.
- name: TransitGatewayAttachment
dimension: true
type: keyword
description: Filters the metric data by transit gateway attachment.
- name: transitgateway
Expand Down
5 changes: 5 additions & 0 deletions packages/aws/data_stream/vpn/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: cloud
- external: ecs
name: cloud.account.id
dimension: true
- external: ecs
name: cloud.account.name
- external: ecs
Expand All @@ -18,6 +19,7 @@
name: cloud.provider
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: ecs.version
- external: ecs
Expand Down Expand Up @@ -60,3 +62,6 @@
name: container.labels
- external: ecs
name: container.name
- name: agent.id
external: ecs
dimension: true
2 changes: 2 additions & 0 deletions packages/aws/data_stream/vpn/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@
fields:
- name: VpnId
type: keyword
dimension: true
description: Filters the metric data by the Site-to-Site VPN connection ID.
- name: TunnelIpAddress
type: keyword
dimension: true
description: Filters the metric data by the IP address of the tunnel for the virtual private gateway.
- name: cloudwatch
type: group
Expand Down
1 change: 1 addition & 0 deletions packages/aws/docs/firewall.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ An example event for `firewall` looks as following:
| Field | Description | Type | Metric Type |
|---|---|---|---|
| @timestamp | Event timestamp. | date | |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | |
| aws.\*.metrics.\*.\* | Metrics that returned from Cloudwatch API query. | object | |
| aws.cloudwatch.namespace | The namespace specified when query cloudwatch api. | keyword | |
| aws.dimensions.\* | Metric dimensions. | object | |
Expand Down
1 change: 1 addition & 0 deletions packages/aws/docs/transitgateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ An example event for `transitgateway` looks as following:
| Field | Description | Type | Metric Type |
|---|---|---|---|
| @timestamp | Event timestamp. | date | |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | |
| aws.cloudwatch.namespace | The namespace specified when query cloudwatch api. | keyword | |
| aws.dimensions.\* | Metric dimensions. | object | |
| aws.dimensions.TransitGateway | Filters the metric data by transit gateway. | keyword | |
Expand Down
1 change: 1 addition & 0 deletions packages/aws/docs/vpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ An example event for `vpn` looks as following:
| Field | Description | Type | Metric Type |
|---|---|---|---|
| @timestamp | Event timestamp. | date | |
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | |
| aws.\*.metrics.\*.\* | Metrics that returned from Cloudwatch API query. | object | |
| aws.cloudwatch.namespace | The namespace specified when query cloudwatch api. | keyword | |
| aws.dimensions.\* | Metric dimensions. | object | |
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: 1.0.0
name: aws
title: AWS
version: 1.38.2
version: 1.38.3
license: basic
description: Collect logs and metrics from Amazon Web Services with Elastic Agent.
type: integration
Expand Down

0 comments on commit 67f52c8

Please sign in to comment.