Skip to main content

Google Cloud Storage Sink Configuration | Enterprise OPA

The Google Cloud Storage decision log sink allows publishing decision log entries as JSON files to Google Cloud Storage. It is configured by creating a sink with an output.type of gcs.

Example Configuration

decision_logs:
plugin: eopa_dl
plugins:
eopa_dl:
output:
- type: gcs
bucket: logs
credentials_json_file: /root/gcp.credentials.json
timeout: "10s"
batching:
at_period: "10s" # flush batch every 10 seconds
at_count: 10 # flush batch every 10 log entries
at_bytes: 10240 # flush batch whenever 10240 bytes are exceeded
FieldTypeRequiredDefaultDescription
output.bucketstringYesThe bucket where logs are sent to.
output.credentials_json_filestringNoLocation of your Google cloud credentials JSON file. Defaults to the environment variable GOOGLE_APPLICATION_CREDENTIALS.
output.timeoutstringNoTimeout (e.g. 10s)
output.batchingObjectNoSee Batching configuration