
LogExporter
This task is designed to send logs to a Google Cloud Storage.
Enterprise Edition Talk to us
This task is designed to send logs to a Google Cloud Storage.
Export logs to a Google Cloud Storage
This task is designed to send logs to a Google Cloud Storage.
type: "io.kestra.plugin.ee.gcp.gcs.LogExporter"Examples
Ship logs to GCP
id: log_shipper
namespace: company.team
triggers:
- id: daily
type: io.kestra.plugin.core.trigger.Schedule
cron: "@daily"
tasks:
- id: log_export
type: io.kestra.plugin.ee.core.log.LogShipper
logLevelFilter: INFO
lookbackPeriod: P1D
logExporters:
- id: GCPLogExporter
type: io.kestra.plugin.ee.gcp.gcs.LogExporter
projectId: myProjectId
format: JSON
maxLinesPerFile:10000
bucket: my-bucket
logFilePrefix: kestra-log-file
chunk: 1000
Properties
bucket*Requiredstring
GCS Bucket to upload logs files.
The bucket where log files are going to be imported
id*RequiredNon-dynamicstring
^[a-zA-Z0-9][a-zA-Z0-9_-]*1chunkintegerstring
1000The chunk size for every bulk request.
formatstring
JSONIONJSONFormat of the exported files
The format of the exported files
impersonatedServiceAccountstring
The GCP service account to impersonate.
logFilePrefixstring
kestra-log-filePrefix of the log files
The prefix of the log files name. The full file name will be logFilePrefix-localDateTime.json/ion
maxLinesPerFileintegerstring
100000Maximum number of lines per file
The maximum number of lines per file
projectIdstring
The GCP project ID.
scopesarray
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used.
serviceAccountstring
The GCP service account key.
Metrics
files.countcounter
Number of files
logscounter
Number of logs
requests.countcounter
Number of requests
requests.durationtimer
Duration of requests