Skip to content

Commit

Permalink
Set event.module and event.dataset (elastic#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gr committed Jun 30, 2021
1 parent cf4e4ff commit a6d0e99
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 37 deletions.
5 changes: 5 additions & 0 deletions packages/google_workspace/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.6.0"
changes:
- description: Set "event.module" and "event.dataset"
type: enhancement
link: https://github.com/elastic/integrations/pull/1263
- version: "0.5.0"
changes:
- description: add system tests and remove log input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: event.module
type: constant_keyword
description: Event module
value: google_workspace
- name: event.dataset
type: constant_keyword
description: Event dataset
value: google_workspace.admin
- name: '@timestamp'
type: date
description: Event timestamp.
4 changes: 0 additions & 4 deletions packages/google_workspace/data_stream/admin/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@
type: keyword
ignore_above: 1024
description: "This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy."
- name: dataset
type: keyword
ignore_above: 1024
description: "Name of the dataset."
- name: duration
type: long
format: duration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: event.module
type: constant_keyword
description: Event module
value: google_workspace
- name: event.dataset
type: constant_keyword
description: Event dataset
value: google_workspace.drive
- name: '@timestamp'
type: date
description: Event timestamp.
5 changes: 0 additions & 5 deletions packages/google_workspace/data_stream/drive/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
type: keyword
ignore_above: 1024
description: "This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy."
- name: dataset
level: core
type: keyword
ignore_above: 1024
description: "Name of the dataset."
- name: duration
level: core
type: long
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: event.module
type: constant_keyword
description: Event module
value: google_workspace
- name: event.dataset
type: constant_keyword
description: Event dataset
value: google_workspace.groups
- name: '@timestamp'
type: date
description: Event timestamp.
5 changes: 0 additions & 5 deletions packages/google_workspace/data_stream/groups/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
type: keyword
ignore_above: 1024
description: "This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy."
- name: dataset
level: core
type: keyword
ignore_above: 1024
description: "Name of the dataset."
- name: duration
level: core
type: long
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: event.module
type: constant_keyword
description: Event module
value: google_workspace
- name: event.dataset
type: constant_keyword
description: Event dataset
value: google_workspace.login
- name: '@timestamp'
type: date
description: Event timestamp.
5 changes: 0 additions & 5 deletions packages/google_workspace/data_stream/login/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
type: keyword
ignore_above: 1024
description: "This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy."
- name: dataset
level: core
type: keyword
ignore_above: 1024
description: "Name of the dataset."
- name: duration
level: core
type: long
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: event.module
type: constant_keyword
description: Event module
value: google_workspace
- name: event.dataset
type: constant_keyword
description: Event dataset
value: google_workspace.saml
- name: '@timestamp'
type: date
description: Event timestamp.
5 changes: 0 additions & 5 deletions packages/google_workspace/data_stream/saml/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
type: keyword
ignore_above: 1024
description: "This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy."
- name: dataset
level: core
type: keyword
ignore_above: 1024
description: "Name of the dataset."
- name: duration
level: core
type: long
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
- name: event.module
type: constant_keyword
description: Event module
value: google_workspace
- name: event.dataset
type: constant_keyword
description: Event dataset
value: google_workspace.user_accounts
- name: '@timestamp'
type: date
description: Event timestamp.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
type: keyword
ignore_above: 1024
description: "This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy."
- name: dataset
level: core
type: keyword
ignore_above: 1024
description: "Name of the dataset."
- name: duration
level: core
type: long
Expand Down
18 changes: 12 additions & 6 deletions packages/google_workspace/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,12 @@ An example event for `saml` looks as following:
| ecs.version | ECS version | keyword |
| event.action | The action captured by the event. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. | keyword |
| event.dataset | Name of the dataset. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.duration | Duration of the event in nanoseconds. | long |
| event.end | event.end contains the date when the event ended or when the activity was last observed. | date |
| event.id | Unique ID to describe the event. | keyword |
| event.ingested | Timestamp when an event arrived in the central data store. | date |
| event.module | Event module | constant_keyword |
| event.original | Raw text message of entire event. Used to demonstrate log integrity. | keyword |
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. | keyword |
| event.provider | Source of the event. | keyword |
Expand Down Expand Up @@ -412,11 +413,12 @@ An example event for `user_accounts` looks as following:
| ecs.version | ECS version | keyword |
| event.action | The action captured by the event. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. | keyword |
| event.dataset | Name of the dataset. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.duration | Duration of the event in nanoseconds. | long |
| event.end | event.end contains the date when the event ended or when the activity was last observed. | date |
| event.id | Unique ID to describe the event. | keyword |
| event.ingested | Timestamp when an event arrived in the central data store. | date |
| event.module | Event module | constant_keyword |
| event.original | Raw text message of entire event. Used to demonstrate log integrity. | keyword |
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. | keyword |
| event.provider | Source of the event. | keyword |
Expand Down Expand Up @@ -631,11 +633,12 @@ An example event for `login` looks as following:
| ecs.version | ECS version | keyword |
| event.action | The action captured by the event. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. | keyword |
| event.dataset | Name of the dataset. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.duration | Duration of the event in nanoseconds. | long |
| event.end | event.end contains the date when the event ended or when the activity was last observed. | date |
| event.id | Unique ID to describe the event. | keyword |
| event.ingested | Timestamp when an event arrived in the central data store. | date |
| event.module | Event module | constant_keyword |
| event.original | Raw text message of entire event. Used to demonstrate log integrity. | keyword |
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. | keyword |
| event.provider | Source of the event. | keyword |
Expand Down Expand Up @@ -855,11 +858,12 @@ An example event for `admin` looks as following:
| ecs.version | ECS version | keyword |
| event.action | The action captured by the event. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. | keyword |
| event.dataset | Name of the dataset. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.duration | Duration of the event in nanoseconds. | long |
| event.end | event.end contains the date when the event ended or when the activity was last observed. | date |
| event.id | Unique ID to describe the event. | keyword |
| event.ingested | Timestamp when an event arrived in the central data store. | date |
| event.module | Event module | constant_keyword |
| event.original | Raw text message of entire event. Used to demonstrate log integrity. | keyword |
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. | keyword |
| event.provider | Source of the event. | keyword |
Expand Down Expand Up @@ -1184,11 +1188,12 @@ An example event for `drive` looks as following:
| ecs.version | ECS version | keyword |
| event.action | The action captured by the event. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. | keyword |
| event.dataset | Name of the dataset. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.duration | Duration of the event in nanoseconds. | long |
| event.end | event.end contains the date when the event ended or when the activity was last observed. | date |
| event.id | Unique ID to describe the event. | keyword |
| event.ingested | Timestamp when an event arrived in the central data store. | date |
| event.module | Event module | constant_keyword |
| event.original | Raw text message of entire event. Used to demonstrate log integrity. | keyword |
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. | keyword |
| event.provider | Source of the event. | keyword |
Expand Down Expand Up @@ -1445,11 +1450,12 @@ An example event for `groups` looks as following:
| ecs.version | ECS version | keyword |
| event.action | The action captured by the event. | keyword |
| event.category | This is one of four ECS Categorization Fields, and indicates the second level in the ECS category hierarchy. | keyword |
| event.dataset | Name of the dataset. | keyword |
| event.dataset | Event dataset | constant_keyword |
| event.duration | Duration of the event in nanoseconds. | long |
| event.end | event.end contains the date when the event ended or when the activity was last observed. | date |
| event.id | Unique ID to describe the event. | keyword |
| event.ingested | Timestamp when an event arrived in the central data store. | date |
| event.module | Event module | constant_keyword |
| event.original | Raw text message of entire event. Used to demonstrate log integrity. | keyword |
| event.outcome | This is one of four ECS Categorization Fields, and indicates the lowest level in the ECS category hierarchy. | keyword |
| event.provider | Source of the event. | keyword |
Expand Down
4 changes: 2 additions & 2 deletions packages/google_workspace/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: google_workspace
title: Google Workspace
version: 0.5.0
version: 0.6.0
release: experimental
description: Google Workspace Integration
type: integration
Expand All @@ -14,7 +14,7 @@ icons:
categories:
- security
conditions:
kibana.version: ^7.12.1
kibana.version: ^7.14.0
policy_templates:
- name: google_workspace
title: Google Workspace logs
Expand Down

0 comments on commit a6d0e99

Please sign in to comment.