-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Filebeat][GSuite] Initial implementation of SAML and User Accounts f…
…ilesets (#19329) * GSuite initial implementation of SAML fileset * Document fields and generate test file * Add documentation * Split fields and improve docs * Add change to CHANGELOG * Rename config file and clean docs * Adds user accounts fileset * Add delegated user to google oauth * Add types and make changes to common pipeline * Do not stop input if array key not found * Fix docs * Setup for date cursor * Add beta tag * CHANGELOG message * Improve ECS mappings * Change cateogrization and types of various fields * Change event.type to start * Improve doc references
- Loading branch information
Showing
27 changed files
with
1,346 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[filebeat-module-gsuite]] | ||
[role="xpack"] | ||
|
||
:modulename: gsuite | ||
:has-dashboards: false | ||
|
||
== GSuite module | ||
|
||
beta[] | ||
|
||
This is a module for ingesting data from the different GSuite audit reports API's. | ||
|
||
include::../include/gs-link.asciidoc[] | ||
|
||
[float] | ||
=== Compatibility | ||
|
||
It is compatible with a subset of applications under the https://developers.google.com/admin-sdk/reports/v1/get-start/getting-started[Google Reports API v1]. As of today it supports: | ||
|
||
- https://developers.google.com/admin-sdk/reports/v1/appendix/activity/saml[SAML Audit Activity Events] | ||
- https://developers.google.com/admin-sdk/reports/v1/appendix/activity/user-accounts[User Accounts Activity Events] | ||
|
||
=== Configure the module | ||
|
||
In order for filebeat to ingest data from the Google Reports API you must set up a `ServiceAccount` that has access to the `Admin SDK API`. Additionally https://developers.google.com/admin-sdk/reports/v1/guides/delegation[Domain-Wide Delegation] is required for your application to work properly. | ||
|
||
This module will make use of the following `oauth2 scope`: | ||
|
||
- `https://www.googleapis.com/auth/admin.reports.audit.readonly` | ||
|
||
Once you have downloaded your service account credentials as a JSON file, | ||
you can set up your module: | ||
|
||
[float] | ||
===== Configuration options | ||
|
||
[source,yaml] | ||
---- | ||
- module: gsuite | ||
saml: | ||
enabled: true | ||
var.jwt_file: "./credentials_file.json" | ||
var.delegated_account: "user@example.com" | ||
user_accounts: | ||
enabled: true | ||
var.jwt_file: "./credentials_file.json" | ||
var.delegated_account: "user@example.com" | ||
---- | ||
|
||
Every fileset has the following configuration options: | ||
|
||
*`var.jwt_file`*:: | ||
|
||
Specifies the path to the JWT credentials file. | ||
|
||
*`var.delegated_account`*:: | ||
|
||
Email of the admin user used to access the API. | ||
|
||
*`var.http_client_timeout`*:: | ||
|
||
Duration of the time limit on HTTP requests made by the module. Defaults to | ||
`60s`. | ||
|
||
*`var.interval`*:: | ||
|
||
Duration between requests to the API. Defaults to `60s`. | ||
|
||
*`var.user_key`*:: | ||
|
||
Specifies the user key to fetch reports from. Defaults to `all`. | ||
|
||
[float] | ||
==== GSuite Reports ECS fields | ||
|
||
This is a list of GSuite Reports fields that are mapped to ECS. | ||
|
||
[options="header"] | ||
|======================================================================================= | ||
| GSuite Reports | ECS Fields | | ||
| items[].id.time | @timestamp | | ||
| items[].id.uniqueQualifier | event.id | | ||
| items[].id.applicationName | event.provider | | ||
| items[].events[].name | event.action | | ||
| items[].customerId | organization.id | | ||
| items[].ipAddress | client.ip, related.ip, client.as.*, client.geo.* | | ||
| items[].actor.email | client.user.email, client.user.name, client.user.domain | | ||
| items[].actor.profileId | client.user.id | | ||
|======================================================================================= | ||
|
||
These are the common ones to all filesets. | ||
|
||
:has-dashboards!: | ||
|
||
:modulename!: | ||
|
||
|
||
[float] | ||
=== Fields | ||
|
||
For a description of each field in the module, see the | ||
<<exported-fields-gsuite,exported fields>> section. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.