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
Properties
Validation RegExp ^[a-zA-Z0-9][a-zA-Z0-9_-]*
Min length 1

OTLP endpoint

Url of the OTLP endpoint to export logs to

Authentication header name

Name of the authorization header

Authentication header value

Value of the authorization header

Default 1000

The chunk size for every bulk request.