Skip to content
Visit booth 3171 at Google Cloud Next to see how to unlock real-time decisions at scaleMore info

Configure formats for Aerospike Connect for Elasticsearch

Overview

This page describes the format section of the aerospike-elasticsearch-outbound.yaml file which specifies the serialization format of the data output.

Aerospike record metadata

Every Aerospike record has a metadata associated with it. Following is the list of metadata fields that XDR sends to connector with every record:

MetadataTypeDescriptionPresent in
msgstringWrite/Delete operation.Delete and Write
namespacestringNamespace of the Aerospike record.Delete and Write
setstringSet of the Aerospike record.Write
userKeylong, double, bytes or stringUser key of the Aerospike record.Write (only if user key is stored on server)
digestbytesDigest of the Aerospike record.Delete and Write
genintGeneration of the Aerospike record.Write
lutintLast update time of the Aerospike record.Write
expintExpiry of the Aerospike record.Write
durablebooleanWhether the delete is durable.Delete

The only supported format is custom. The payload-format of this custom format can either be JSON or FlatJSON.

Example

...
format:
mode: custom
payload-format:
mode: flat-json
batch-formatter-class: com.aerospike.connect.outbound.transformer.examples.elasticsearch.ElasticsearchCustomJsonBatchFormatter
...
Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?