Hi all,
I find myself integrating the google_workspace module via filebeat (filebeat-7.17.0-linux-x86_64) on an Ubuntu 20.04 LTS. I have followed all the steps in the "Configure the module" reference (Google Workspace module | Filebeat Reference [8.0] | Elastic) but when I try to start the module from filebeat via the command ./filebeat -e I get the following error (same error but sometimes the file it seems to be the 'credentials.json' and others times it seems to be a priori with no reason:
2022-03-04T09:55:13.430-0800 INFO [monitoring] log/log.go:193 Uptime: 3.570796779s
2022-03-04T09:55:13.430-0800 INFO [monitoring] log/log.go:160 Stopping metrics logging.
2022-03-04T09:55:13.430-0800 INFO instance/beat.go:498 filebeat stopped.
2022-03-04T09:55:13.430-0800 ERROR instance/beat.go:1015 Exiting: Failed to start crawler: creating module reloader failed: error checking input configuration: the file "<no value>" cannot be found accessing 'auth.oauth2'
Exiting: Failed to start crawler: creating module reloader failed: error checking input configuration: the file "<no value>" cannot be found accessing 'auth.oauth2'
2022-03-04T09:55:13.430-0800 INFO [monitoring] log/log.go:193 Uptime: 3.570796779s
2022-03-04T09:55:13.430-0800 INFO [monitoring] log/log.go:160 Stopping metrics logging.
2022-03-04T09:55:13.430-0800 INFO instance/beat.go:498 filebeat stopped.
2022-03-04T09:55:13.430-0800 ERROR instance/beat.go:1015 Exiting: Failed to start crawler: creating module reloader failed: error checking input configuration: the file "<./credentials.json>" cannot be found accessing 'auth.oauth2'
Exiting: Failed to start crawler: creating module reloader failed: error checking input configuration: the file "<./credentials.json>" cannot be found accessing 'auth.oauth2'
My google_workspace.yml has the following content (all the rest it's commented):
# Module: google_workspace
# Docs: https://www.elastic.co/guide/en/beats/filebeat/7.16/filebeat-module-google_workspace.html
- module: google_workspace
saml:
enabled: true
var.jwt_file: "./credentials.json"
var.delegated_account: "admin_account@domain"
# var.initial_interval: 24h
# var.http_client_timeout: 60s
# var.user_key: all
# var.interval: 2h
...
I have tried both with the JSON configuration file of the service account credentials and the OAuth 2.0 Client IDs without success. Anyone who has been able to implement it without problem or has had a similar problem? Looking for information about the error 'auth.oauth2' I find almost no information...
Thanks