LogExporter
Export logs to an Opentelemetry collector
This task is designed to send logs via Opentelemetry exporter to an Opentelemetry collector.
yaml
type: "io.kestra.plugin.ee.opentelemetry.LogExporter"
Ship logs using OTLP
yaml
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
batchSize: 1000
lookbackPeriod: P1D
logExporters:
- id: OTLPLogExporter
type: io.kestra.plugin.ee.opentelemetry.LogExporter
otlpEndpoint: http://localhost:4318/v1/logs
authorizationHeaderName: Authorization
authorizationHeaderValue: Bearer token
Dynamic NO
Validation RegExp ^[a-zA-Z0-9][a-zA-Z0-9_-]*
Min length 1
Dynamic YES
OTLP endpoint
Url of the OTLP endpoint to export logs to
Dynamic YES
Default 1000