Ship logs to a file inside Kestra's internal storage file.
This task is designed to be used when no other log shipper satisfy the needs so 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."
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
Dynamic NO
Validation RegExp ^[a-zA-Z0-9][a-zA-Z0-9_-]*
Min length 1
Dynamic YES
Default ION
Possible Values
IONJSON
Format of the exported files
The format of the exported files
Dynamic YES
Default kestra-log-file
Prefix of the log files
The prefix of the log files name. The full file name will be logFilePrefix-localDateTime.json/ion
Dynamic YES
Maximum number of lines per file
The maximum number of lines per file