Elastic search exporter giving exception while exporting data

I am getting some exception while exporting data to elastic search from Zeebe-Broker

here is exception

10:51:13.102 [exporter] [172.22.0.3:26501-zb-actors-1] ERROR io.zeebe.broker.exporter.elasticsearch - Error exporting record RecordImpl{key=-1, position=4294967392, timestamp=2019-05-13T10:51:13.078Z, raftTerm=1, producerId=-1, sourceRecordPosition=-1, metadata=RecordMetadataImpl{partitionId=0, intent=ACTIVATE, recordType=COMMAND, rejectionType=NULL_VAL, rejectionReason='', valueType=JOB_BATCH}, value=JobBatchRecordValueImpl{type='createFulfillmentItem', truncated=false, worker='component-workflow-handler', timeout=PT10S, maxJobsToActivate=2, jobKeys=[], jobs=[]}}
java.lang.NullPointerException: null
        at io.zeebe.exporter.ElasticsearchExporter.createRootIndexTemplate(ElasticsearchExporter.java:157) ~[zeebe-elasticsearch-exporter-0.17.0.jar:0.17.0]
        at io.zeebe.exporter.ElasticsearchExporter.createIndexTemplates(ElasticsearchExporter.java:111) ~[zeebe-elasticsearch-exporter-0.17.0.jar:0.17.0]
        at io.zeebe.exporter.ElasticsearchExporter.export(ElasticsearchExporter.java:76) ~[zeebe-elasticsearch-exporter-0.17.0.jar:0.17.0]
        at io.zeebe.broker.exporter.stream.ExporterStreamProcessor$RecordExporter.executeSideEffects(ExporterStreamProcessor.java:232) ~[zeebe-broker-core-0.17.0.jar:0.17.0]
        at io.zeebe.util.retry.ActorRetryMechanism.run(ActorRetryMechanism.java:42) ~[zeebe-util-0.17.0.jar:0.17.0]
        at io.zeebe.util.retry.AbortableRetryStrategy.run(AbortableRetryStrategy.java:51) ~[zeebe-util-0.17.0.jar:0.17.0]
        at io.zeebe.util.sched.ActorJob.invoke(ActorJob.java:87) [zeebe-util-0.17.0.jar:0.17.0]
        at io.zeebe.util.sched.ActorJob.execute(ActorJob.java:53) [zeebe-util-0.17.0.jar:0.17.0]
        at io.zeebe.util.sched.ActorTask.execute(ActorTask.java:189) [zeebe-util-0.17.0.jar:0.17.0]
        at io.zeebe.util.sched.ActorThread.executeCurrentTask(ActorThread.java:154) [zeebe-util-0.17.0.jar:0.17.0]
        at io.zeebe.util.sched.ActorThread.doWork(ActorThread.java:135) [zeebe-util-0.17.0.jar:0.17.0]
        at io.zeebe.util.sched.ActorThread.run(ActorThread.java:112) [zeebe-util-0.17.0.jar:0.17.0]

here is my config zeebe.cfg.toml file for elastic

#
# An example configuration for the elasticsearch exporter:
#
[[exporters]]
id = "elasticsearch"
className = "io.zeebe.exporter.ElasticsearchExporter"

  [exporters.args]
  url = "http://elk:9200"

#  [exporters.args.bulk]
#  delay = 5
#  size = 1_000
#
#  [exporters.args.authentication]
#  username = elastic
#  password = changeme
#
#  [exporters.args.index]
#  prefix = "zeebe-record"
#  createTemplate = true
#
#  command = false
#  event = true
#  rejection = false
#
#  deployment = true
#  incident = true
#  job = true
#  message = false
#  messageSubscription = false
#  raft = false
#  workflowInstance = true
#  workflowInstanceSubscription = false

Hey @regojoyson

thanks for reporting this.
Could you please share the complete log?

Greets
Chris

1 Like

Thanks @Zelldon for quick response. i solved problem, actually after i uncommenting all exporter args it worked for me.

1 Like