Elasticsearch LogExporter
Certified
Enterprise Edition
Bulk export logs to Elasticsearch
Elasticsearch LogExporter
Bulk export logs to Elasticsearch
Streams execution logs to an Elasticsearch index via the Bulk API. Uses rendered indexName and chunk for batching (default 1000 records per bulk request); document IDs are derived from log timestamps, so ensure index mappings accept the task log schema.
type: io.kestra.plugin.ee.elasticsearch.LogExporterExamples
Ship logs to Elasticsearch
id: log_shipper
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
logLevelFilter: INFO
batchSize: 1000
lookbackPeriod: P1D
logExporters:
- id: ElasticsearchLogExporter
type: io.kestra.plugin.ee.elasticsearch.LogExporter
connection:
hosts:
- "http://localhost:9200/"
indexName: "logs"
Installation
This Enterprise plugin requires an Enterprise image and access to the plugin registry. Install it with the following command:
kestractl plugins get io.kestra.plugin.ee:plugin-ee-elasticsearch --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
connection *
Elasticsearch connection settings
Hosts, authentication, headers, and TLS options reused for all requests.
id *string
^[a-zA-Z0-9][a-zA-Z0-9_-]*1indexName *string
Target index name
Rendered per execution; index must accept the task log schema.
chunk integerstring
1000Bulk chunk size
Number of log documents per bulk request (default 1000); tune for throughput versus memory.
Metrics
records counter
The number of records sent to Elasticsearch
requests.count counter
The number of requests sent to Elasticsearch
requests.duration timer
The duration of the requests sent to Elasticsearch