Insert
Elasticsearch Plugin – Insert Action
Summary (SEO Meta Description):
The Insert Action of the Elasticsearch Plugin adds new documents to an Elasticsearch index.
It enables workflows to store and manage data in real-time search and analytics applications.
Overview
The Insert Action allows your workflow to insert new JSON documents into an Elasticsearch index.
This is essential for keeping your index updated with fresh data for search, analytics, or reporting.
Typical Use Cases:
- Insert user activity logs or event data into Elasticsearch
- Store real-time IoT or application metrics
- Add new product or customer records for instant searchability
- Push data from other systems into Elasticsearch for centralized analytics
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Select connection | Choose or create a secure Elasticsearch connection | Connection | 
| Index | Name of the Elasticsearch index where the document will be inserted | String | 
| Inputs (Manual) | Manually define fields and their data types to insert | NAME (field name) + Type: NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY | 
| Truncate Fields | Optional toggle to truncate fields before inserting | Boolean | 
| Truncate Level | Specify truncation depth when Truncate Fields is enabled | Number | 
| Schema | Optional schema to validate the inserted document | Schema | 
FAQ
Q: Can I insert multiple documents at once?
A: This action is designed for inserting single documents. For bulk insert, use multiple actions or a custom integration.
Q: What happens if the index does not exist?
A: The action will fail unless Elasticsearch is configured to automatically create the index.
Q: Are all field types supported?
A: Yes. You can insert fields of types NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, or ANY.
Q: Why use schema validation?
A: Schema validation ensures the inserted document matches the expected structure and prevents data inconsistencies.
Keywords: WeHub Elasticsearch Plugin, Insert Action, Add Document, Real-time Indexing, Data Ingestion, Workflow Data Storage