
Elasticsearch LogExporter
CertifiedEnterprise EditionBulk export logs to Elasticsearch
Elasticsearch LogExporter
Certified
Enterprise Edition
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.
yaml
type: io.kestra.plugin.ee.elasticsearch.LogExporterExamples
Ship logs to Elasticsearch
yaml
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"
Properties
connection *
Elasticsearch connection settings
Hosts, authentication, headers, and TLS options reused for all requests.
Definitions
id *string
Validation RegExp
^[a-zA-Z0-9][a-zA-Z0-9_-]*Min length
1indexName *string
Target index name
Rendered per execution; index must accept the task log schema.
chunk integerstring
Default
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