-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry-pick #19329 to 7.x: [Filebeat][GSuite] Initial implementation of SAML and User Accounts filesets #19726
Merged
Merged
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks it it picked up two extra lines.