Host the report on GCS
Prerequisites
Authentication
To host the report on GCS (Google Cloud Storage), provide one of two ways to authenticate:
Service Account (Recommended)
you can send the report to your GCS bucket by running the command:
OAuth using gcloud
If you’re using OAuth with gcloud
, simply omit --google-service-account-path
:
You can control the location of the report in the bucket by providing --bucket-file-path <REPORT_PATH>
to
the edr send-report
command. Make sure the report’s file name ends with .html
.
Hosting the report as a website
You can host the report as the bucket’s website so that you can browse to it with a constant URL
like https://storage.googleapis.com/<Elementary-Report-Bucket>/index.html
.
Here’s an example.
In order to do that, pass --update-bucket-website true
to send-report
in order to update the index.html
file in
the bucket.
Note: You might want to limit or grant access to your reports bucket to certain users.
Configuration in file
If you prefer to use config.yml
file, you can add the following configuration instead of the CLI arguments:
Send report summary to Slack
In addition to hosting the report, you can send a report summary notification to Slack every time the report is updated.