Overview
Use OpenSearch as a destination in Mage to publish JSON-formatted records into an OpenSearch index. This is ideal for search indexing, log aggregation, and real-time analytics. By default, Mage uses the pipeline’stable name to set the OpenSearch index name. You can also define dynamic index patterns using JSONPath expressions.
Configuration Parameters
Notes
- Mage automatically converts each record into JSON format and indexes it into the specified OpenSearch index.
- If
index_schema_fieldsis configured, Mage will use the JSONPath-extracted values from each record to generate dynamic index names. metadata_fieldsis useful for setting OpenSearch ECS-compatible fields like_id,@timestamp, etc., from the incoming data stream.- Authentication can be configured using basic auth, bearer tokens, or API key pairs.
- For production use, we recommend enabling
httpsand providing a trustedssl_ca_file.