FileLogExporter​File​Log​Exporter

Ship logs to a file inside Kestra's internal storage.

This task is designed to be used when no external tool's log shipper satisfies requirements. You can ship logs to the internal storage and use any other Kestra task to send it to a remote location.

yaml
type: "io.kestra.plugin.ee.core.log.FileLogExporter"

Ship logs to the internal storage

yaml
id: logShipper
namespace: company.team

triggers:
  - id: daily
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "@daily"

tasks:
  - id: logSync
    type: io.kestra.plugin.ee.core.log.LogShipper
    logExporters:
      - id: file
        type: io.kestra.plugin.ee.core.log.FileLogExporter
        format: JSON
        maxLinesPerFile: 100
Properties
Validation RegExp ^[a-zA-Z0-9][a-zA-Z0-9_-]*
Min length 1
Default ION
Possible Values
IONJSON

Format of the exported files

This property defines the format of the exported files.

Default kestra-log-file

Prefix of the log files

This property sets the prefix of the log files name. The full file name will be logFilePrefix-localDateTime.json/ion.

Maximum number of lines per file

This property specifies the maximum number of lines per log file.