Skip to main content

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

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create a secure Elasticsearch connectionConnection
IndexName of the Elasticsearch index where the document will be insertedString
Inputs (Manual)Manually define fields and their data types to insertNAME (field name) + Type: NUMBER, STRING, BYTE, DATE, DATETIME, BOOLEAN, OBJECT, ARRAY, ANY
Truncate FieldsOptional toggle to truncate fields before insertingBoolean
Truncate LevelSpecify truncation depth when Truncate Fields is enabledNumber
SchemaOptional schema to validate the inserted documentSchema

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