Camunda Exporter
The Camunda Exporter exports Zeebe records directly to Elasticsearch or OpenSearch. Unlike the Elasticsearch and OpenSearch exporters, it exports records in the format required by Operate and Tasklist, so you don’t need to configure additional importers or data transformations.
Using the Camunda Exporter can increase process instance throughput and reduce the latency of changes appearing in Operate and Tasklist.
When exporting, indexes are created as required and not recreated if they already exist. However, disabling the exporter does not delete indexes. Administrators must handle deletions. You can configure a retention policy to automatically delete data after a set number of days.
Configuration
Camunda Exporter is enabled by default if secondary storage is configured to use Elasticsearch or OpenSearch. See the properties prefixed with CAMUNDA_DATA_SECONDARYSTORAGE in secondary-storage configuration properties.
The option names in the tabs below (for example, rolloverInterval) are exporter option names, not top-level Helm values keys.
The Helm chart has values for some history and retention options. Each tab below names them. For options without a Helm value, set the environment variables in orchestration.env, for example ZEEBE_BROKER_EXPORTERS_CAMUNDAEXPORTER_ARGS_BULK_SIZE. Do not use orchestration.configuration for this, because it replaces the complete generated application.yaml.
Set these options as exporter arguments with the application property prefix zeebe.broker.exporters.camundaexporter.args.. The camunda.data.secondary-storage.* properties do not include these options in Camunda 8.8. The exception is history.processInstanceEnabled. See the History tab.
When you set zeebe.broker.exporters.camundaexporter.args.*, also set zeebe.broker.exporters.camundaexporter.className: io.camunda.exporter.CamundaExporter. The Helm chart already sets the class name. Without the class name, the broker cannot load the exporter.
You can also configure the following properties using exporter args:
zeebe:
broker:
exporters:
# Camunda Exporter ----------
# An example configuration for the camunda exporter:
#
# These setting can also be overridden using the environment variables "ZEEBE_BROKER_EXPORTERS_CAMUNDAEXPORTER_..."
# To convert a YAML formatted variable to an environment variable, start with the top-level property and separate every nested property with an underscore (_).
# For example, the property "zeebe.broker.exporters.camundaexporter.args.bulk.size" would be converted to "ZEEBE_BROKER_EXPORTERS_CAMUNDAEXPORTER_ARGS_BULK_SIZE".
#
camundaexporter:
className: io.camunda.exporter.CamundaExporter
args:
| Option | Description | Default |
|---|---|---|
| connect | Connection configuration options. See Connect. | |
| index | Index configuration options. See Index. | |
| bulk | Bulk configuration options. See Bulk. | |
| history | Retention configuration options. See History. | |
| createSchema | If true, checks schema readiness before exporting. | true |
Options
- Connect
- Index
- Bulk
- Retention
- History
- Tasklist
- Other
No Helm value. Application property prefix for these options: zeebe.broker.exporters.camundaexporter.args.connect.
Please refer to supported environments to find out which versions of Elasticsearch and/or OpenSearch are supported in a Camunda 8 Self-Managed setup.
| Option | Description | Default |
|---|---|---|
| dateFormat | Defines a custom date format that should be used for fetching date data from the engine (should be the same as in the engine) | yyyy-MM-dd'T'HH:mm:ss.SSSZZ |
| socketTimeout | Defines the socket timeout in milliseconds, which is the timeout for waiting for data. | |
| connectTimeout | Determines the timeout in milliseconds until a connection is established. |
To use AWS credentials, set zeebe.broker.exporters.camundaexporter.args.connect.awsEnabled: true and camunda.database.aws-enabled: true. In Helm, global.opensearch.aws.enabled sets both.
If you are using opensearch on AWS, the AWS SDK's DefaultCredentialsProvider is used for authentication. For more details on configuring credentials, refer to the AWS SDK documentation.
Application property prefix for these options: zeebe.broker.exporters.camundaexporter.args.index.
In Camunda 8.8, the schema manager creates the indices from camunda.database.index.*. The exporter options numberOfShards, numberOfReplicas, shardsByIndexName, and replicasByIndexName do not change the indices. Set these camunda.database.index.* settings instead: number-of-shards, number-of-replicas, shards-by-index-name and replicas-by-index-name. In Helm, set the replica count with orchestration.index.replicas.
| Option | Description | Default |
|---|---|---|
| numberOfShards | The number of shards used for each created index. | 1 |
| numberOfReplicas | The number of shard replicas used for each created index. | 1 |
| variableSizeThreshold | Defines a threshold for variable size. Variables exceeding this threshold are split into two properties: FULL_VALUE (full content, not indexed) and VALUE (truncated content, indexed). | 8191 |
| shardsByIndexName | A map where the key is the index name and the value is the number of shards, allowing you to override the default numberOfShards setting for specific indices. | |
| replicasByIndexName | A map where the key is the index name and the value is the number of replicas, allowing you to override the default numberOfReplicas setting for specific indices. |
No Helm value. Application property prefix for these options: zeebe.broker.exporters.camundaexporter.args.bulk.
To avoid too many expensive requests to the Elasticsearch/OpenSearch cluster, the exporter performs batch updates by default. The size of the batch, along with how often it should be flushed (regardless of size) can be controlled by configuration.
| Option | Description | Default |
|---|---|---|
| delay | Delay, in seconds, before force flush of the current batch. This ensures that even when we have low traffic of records, we still export every once in a while. | 5 |
| size | The amount of records a batch should have before we flush the batch. | 1000 |
With the default configuration, the exporter will aggregate records and flush them to Elasticsearch/OpenSearch:
- When it has aggregated 1000 records.
- Five seconds have elapsed since the last flush (regardless of how many records were aggregated).
- Helm values:
orchestration.history.retention.<option>(enabled,minimumAge,policyName,usageMetricsMinimumAge,usageMetricsPolicyName). - Application property prefix:
zeebe.broker.exporters.camundaexporter.args.history.retention.
The schema manager creates the ILM policies from camunda.database.retention.*, and the exporter applies them. Without Helm, set both property groups with the same values. The Helm values set both.
A retention policy can be set up to delete old data.
When enabled, this creates an Index Lifecycle Management (ILM) Policy that deletes the data after the specified
minimumAge.
All index templates created by this exporter apply the created ILM Policy.
| Option | Description | Default |
|---|---|---|
| enabled | If true the ILM Policy is created and applied to the index templates. | false |
| minimumAge | Specifies how old the dated history index must be before it is deleted, as a duration. The age counts from index creation, not from document age, so a document can be deleted before it is minimumAge old. See Set retention with the rollover interval. | 30d |
| policyName | The name of the created and applied ILM policy. | camunda-retention-policy |
| usageMetricsMinimumAge | Specifies how old the usage metrics data must be, before the data is deleted as a duration. Applies to camunda-usage-metric-8.8.0_ and camunda-usage-metric-tu-8.8.0_ indices. | 730d |
| usageMetricsPolicyName | The name of the created and applied usage metrics ILM policy. | camunda-usage-metrics-retention-policy |
The duration can be specified in days d, hours h, minutes m, seconds s, milliseconds ms, and/or nanoseconds
nanos.
- Helm values:
orchestration.history.<option>(elsRolloverDateFormat,rolloverInterval,rolloverBatchSize,waitPeriodBeforeArchiving,delayBetweenRuns,maxDelayBetweenRuns). - Application property prefix for other options:
zeebe.broker.exporters.camundaexporter.args.history.
For example, rolloverInterval maps to the Helm value orchestration.history.rolloverInterval.
Exception: set processInstanceEnabled with camunda.data.secondary-storage.{elasticsearch|opensearch}.history.process-instance-enabled. If you also set the exporter argument, both values must match, or the Orchestration Cluster does not start.
To keep the main runtime index performant, documents are periodically moved into historical indices. The history can be configured as follows:
| Option | Description | Default |
|---|---|---|
| elsRolloverDateFormat | Defines how date values are formatted for historical indices using Java DateTimeFormatter syntax. If no format is specified, the first date format defined in the field mapping is used. | date |
| rolloverInterval | The rollover period before an active index is rolled over. This means that rolloveInterval is the time gap between updates of historical indexes, therfore for a index index-abc and a rolloverInterval of 7 days (7d) we will have the historical indexes index-abc-2025-01-01, index-abc-2025-01-08 and so on. The elsRolloverDateFormat must have sufficient resolution to compute the rolloverInterval. For example, if the rolloverInterval is 1h, then the elsRolloverDateFormat should be yyyy-MM-dd-HH. Additionally, rolloverInterval cannot use seconds (s) or minutes (m) as units. | 1d |
| usageMetricsRolloverInterval | The rollover period for usage metric indices before an active index is rolled over. Behaves the same way as the rolloveInterval but applies only to usage-metric, usage-metric-tu indices and only values of 1-4w and 1M are allowed. | 1M |
| rolloverBatchSize | Maximum number of process instances in each archiver run. The default and the recommended value depend on the 8.8 patch. See archive by ID. | 500 |
| archiveByIdEnabled | When true, archiving moves the documents in small batches. This option exists only in 8.8.23 to 8.8.42. The default is false up to 8.8.28. From 8.8.43, archiving by ID is always on. See archive by ID. Configure using ZEEBE_BROKER_EXPORTERS_CAMUNDAEXPORTER_ARGS_HISTORY_ARCHIVEBYIDENABLED. | true |
| reindexBatchSize | Number of documents in each batch of archiving by ID. Configure using ZEEBE_BROKER_EXPORTERS_CAMUNDAEXPORTER_ARGS_HISTORY_REINDEXBATCHSIZE. | 2500 |
| waitPeriodBeforeArchiving | Grace period during which completed process instances are excluded from archiving. For example, with a value of 1h, any process instances completed within the last hour will not be archived. | 1h |
| delayBetweenRuns | Time in milliseconds between archiving runs for completed process instances. | 2000 |
| maxDelayBetweenRuns | The maximum delay between archive runs when using an exponential backoff strategy in case of unsuccessful archiving attempts. | 60000 |
| processInstanceEnabled | If true, enables the archiving of the completed process instances and their related objects. | true |
| retention | Refer to Retention for retention configuration options. |
No Helm value. Application property prefix for this Tasklist-specific export option: zeebe.broker.exporters.camundaexporter.args.
| Option | Description | Default |
|---|---|---|
| skipVariableWriteWithoutUserTasks | If true, the exporter skips writing task variable data to the tasklist-task index for process definitions that do not contain any user task flow node instances. This reduces index size and improves write and read performance by avoiding the persistence of task data that is never queried through Tasklist. The exporter uses the process cache to determine whether a deployed process definition contains at least one user task. | false |
When skipVariableWriteWithoutUserTasks is enabled, task variable data is not exported for process definitions without user tasks. If a process instance is later migrated to a process definition version that does contain user tasks, variable data that was previously skipped is not retroactively backfilled. As a result, process-level variable filters in task search only match process instances that were created on a process definition version that already contained user tasks (that is, on or after the version introducing user tasks). For migrated instances, only variables exported after the migration (from new variable update events) appear in task search results.
No Helm value. Application property prefix for these options: zeebe.broker.exporters.camundaexporter.args.
Other miscellaneous properties:
| Option | Description | Default |
|---|---|---|
| batchOperation.exportItemsOnCreation | Defines whether the pending items of a started batch operation should be exported from the beginning. For very large batch operations involving more than 100,000 process instances, this can cause temporary performance issues due to the high volume of document insertions. If set to false, the "has pending batch operations" spinner in the Operate UI will not function properly. | true |
Example
Here is an example configuration of the exporter:
---
exporters:
# Camunda Exporter ----------
# An example configuration for the camunda exporter:
#
# These setting can also be overridden using the environment variables "ZEEBE_BROKER_EXPORTERS_CAMUNDAEXPORTER_..."
# To convert a YAML formatted variable to an environment variable, start with the top-level property and separate every nested property with an underscore (_).
# For example, the property "zeebe.broker.exporters.camundaexporter.args.bulk.size" would be converted to "ZEEBE_BROKER_EXPORTERS_CAMUNDAEXPORTER_ARGS_BULK_SIZE".
#
camundaexporter:
args:
connect:
dateFormat: yyyy-MM-dd'T'HH:mm:ss.SSSZZ
socketTimeout: 1000
connectTimeout: 1000
bulk:
delay: 5
size: 1000
history:
elsRolloverDateFormat: "date"
rolloverInterval: "1d"
rolloverBatchSize: 500
reindexBatchSize: 2500
waitPeriodBeforeArchiving: "1h"
delayBetweenRuns: 2000
maxDelayBetweenRuns: 60000
processInstanceEnabled: true
retention:
enabled: false
minimumAge: 30d
policyName: camunda-retention-policy
usageMetricsMinimumAge: 730d
usageMetricsPolicyName: camunda-usage-metrics-retention-policy
batchOperation:
exportItemsOnCreation: true
skipVariableWriteWithoutUserTasks: false
createSchema: true