Skip to content

Commit 30d2362

Browse files
author
mtojek
committed
[GCP] set event.module and event.dataset
1 parent 9d213e9 commit 30d2362

File tree

6 files changed

+36
-1
lines changed

6 files changed

+36
-1
lines changed

packages/gcp/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: "0.2.0"
3+
changes:
4+
- description: Set "event.module" and "event.dataset"
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/?
27
- version: "0.1.0"
38
changes:
49
- description: update to ECS 1.10.0 and adding event.original options

packages/gcp/data_stream/audit/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: gcp
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: gcp.audit

packages/gcp/data_stream/firewall/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: gcp
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: gcp.firewall

packages/gcp/data_stream/vpcflow/fields/base-fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
- name: '@timestamp'
1111
type: date
1212
description: Event timestamp.
13+
- name: event.module
14+
type: constant_keyword
15+
description: Event module
16+
value: gcp
17+
- name: event.dataset
18+
type: constant_keyword
19+
description: Event dataset
20+
value: gcp.vpcflow

packages/gcp/docs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ An example event for `audit` looks as following:
134134
| data_stream.type | Data stream type. | constant_keyword |
135135
| ecs.version | ECS version | keyword |
136136
| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword |
137+
| event.dataset | Event dataset | constant_keyword |
137138
| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` < `event.created` < `event.ingested`. | date |
139+
| event.module | Event module | constant_keyword |
138140
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. `event.outcome` simply denotes whether the event represents a success or a failure from the perspective of the entity that produced the event. Note that when a single transaction is described in multiple events, each event may populate different values of `event.outcome`, according to their perspective. Also note that in the case of a compound event (a single event that contains multiple logical events), this field should be populated with the value that best captures the overall success or failure from the perspective of the event producer. Further note that not all events will have an associated outcome. For example, this field is generally not populated for metric events, events with `event.type:info`, or any events for which an outcome does not make logical sense. | keyword |
139141
| gcp.audit.authentication_info.authority_selector | The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority. | keyword |
140142
| gcp.audit.authentication_info.principal_email | The email address of the authenticated user making the request. | keyword |
@@ -379,7 +381,9 @@ An example event for `firewall` looks as following:
379381
| destination.port | Port of the destination. | long |
380382
| ecs.version | ECS version | keyword |
381383
| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword |
384+
| event.dataset | Event dataset | constant_keyword |
382385
| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` < `event.created` < `event.ingested`. | date |
386+
| event.module | Event module | constant_keyword |
383387
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. `event.outcome` simply denotes whether the event represents a success or a failure from the perspective of the entity that produced the event. Note that when a single transaction is described in multiple events, each event may populate different values of `event.outcome`, according to their perspective. Also note that in the case of a compound event (a single event that contains multiple logical events), this field should be populated with the value that best captures the overall success or failure from the perspective of the event producer. Further note that not all events will have an associated outcome. For example, this field is generally not populated for metric events, events with `event.type:info`, or any events for which an outcome does not make logical sense. | keyword |
384388
| gcp.destination.instance.project_id | ID of the project containing the VM. | keyword |
385389
| gcp.destination.instance.region | Region of the VM. | keyword |
@@ -595,7 +599,9 @@ An example event for `vpcflow` looks as following:
595599
| destination.port | Port of the destination. | long |
596600
| ecs.version | ECS version | keyword |
597601
| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword |
602+
| event.dataset | Event dataset | constant_keyword |
598603
| event.ingested | Timestamp when an event arrived in the central data store. This is different from `@timestamp`, which is when the event originally occurred. It's also different from `event.created`, which is meant to capture the first time an agent saw the event. In normal conditions, assuming no tampering, the timestamps should chronologically look like this: `@timestamp` < `event.created` < `event.ingested`. | date |
604+
| event.module | Event module | constant_keyword |
599605
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. `event.outcome` simply denotes whether the event represents a success or a failure from the perspective of the entity that produced the event. Note that when a single transaction is described in multiple events, each event may populate different values of `event.outcome`, according to their perspective. Also note that in the case of a compound event (a single event that contains multiple logical events), this field should be populated with the value that best captures the overall success or failure from the perspective of the event producer. Further note that not all events will have an associated outcome. For example, this field is generally not populated for metric events, events with `event.type:info`, or any events for which an outcome does not make logical sense. | keyword |
600606
| gcp.destination.instance.project_id | ID of the project containing the VM. | keyword |
601607
| gcp.destination.instance.region | Region of the VM. | keyword |

packages/gcp/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: gcp
22
title: Google Cloud Platform (GCP)
3-
version: 0.1.0
3+
version: 0.2.0
44
release: experimental
55
description: Google Cloud Platform (GCP) Integration
66
type: integration

0 commit comments

Comments
 (0)