 LogExporter
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"Examples
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
id *RequiredNon-dynamicstring
 Validation RegExp 
^[a-zA-Z0-9][a-zA-Z0-9_-]* Min length 
1otlpEndpoint *Requiredstring
OTLP endpoint
Url of the OTLP endpoint to export logs to
chunk integerstring
 Default 
1000The chunk size for every bulk request.
