Table of Contents

Elasticsearch Plugin

This plugin allows you to send alarms, metrics and metadata directly to an Elasticsearch instance
Each data type can be indexed in separate Elasticsearch indices

Configuration

Connection parameters

Parameter Description Mandatory
Active Enables or disables the Elasticsearch plugin Yes
Configuration Choose between Standard Configuration or Cloud Configuration Yes
Name A unique name for the plugin instance Yes
URL The URL (with HTTPS for a secure connection) Yes (if Standard Config selected)
Port The port used to connect to Elasticsearch (Default: 9200) Yes (if Standard Config selected)
Cloud ID The Cloud ID used for connecting to a cloud-based Elasticsearch instance Yes (if Cloud Config selected)
API Key The API key for authentication Yes (if Cloud Config selected)
Username The username for Elasticsearch authentication No
Password The password for Elasticsearch authentication No
Properties A semicolon-separated list of additional Elasticsearch properties No

Example:

Properties

Data configuration

Alarms parameters
Parameter Description Mandatory
Send alarms If active, alarms received by the plugin will be sent to Elasticsearch No
Track alarms history If active, enables tracking of alarm send history in the plugin statistics No
Alarm Index The Elasticsearch index prefix where alarms will be stored (Default: alarms-redpeaks) Yes (if Send alarms checked)
Metrics parameters
Parameter Description Mandatory
Send metrics If active, metrics received by the plugin will be sent to Elasticsearch No
Track metrics history If active, enables tracking of sent metrics in the plugin statistics No
Metric Index The Elasticsearch index prefix where metrics will be stored (Default: metrics-redpeaks) Yes (if Send metrics checked)
Metadata parameters
Parameter Description Mandatory
Send metadata If active, metadata received by the plugin will be sent to Elasticsearch No
Track metadata history If active, enables tracking of sent metadata in the plugin statistics No
Split metadata If active, flattens metadata before sending it No
Metadata Index The Elasticsearch index prefix where metadata will be stored (Default: metadata-redpeaks) Yes (if Send metadata checked)

Performance & advanced settings

Queue & batching
Parameter Description Mandatory
Max queue size Maximum number of items held in the internal queue before dropping new data (Default: 1000000) Yes
Batch size Maximum number of items sent per bulk request (Default: 25000, min: 1) Yes
Async threads Number of parallel send threads per data type. 1 = synchronous, >1 = async (Default: 1, max: 20) Yes
Socket timeout (ms) Socket timeout for Elasticsearch requests in milliseconds (Default: 60000, range: 1000-600000) Yes
Elasticsearch features
Parameter Description Mandatory
Create templates Automatically create Elasticsearch index templates on startup (Default: enabled) No
Use datastream Use Elasticsearch datastreams instead of regular indices (Default: disabled) No
Use compression Enable gzip compression for data transmission to Elasticsearch (Default: enabled) No

Example:

Custom alarm payload

Enable Custom Payload for Alarms If active, allows customization of the alarm payload No
Alarm Payload The custom payload template for alarms Yes (if Custom Payload is enabled)

Example:

Using Custom Payload

Available Variables

You can use variables from the following categories in your payload template:

Notes:

Troubleshooting

If you encounter issues: