
ELASTICSEARCH n8n INTEGRATION: AUTOMATE ELASTICSEARCH WITH N8N
ELASTICSEARCH N8N INTEGRATION: AUTOMATE ELASTICSEARCH WITH N8N
Need help automating Elasticsearch with n8n?
Our team will get back to you in minutes.
Why automate Elasticsearch with n8n?
The Elasticsearch n8n integration provides 9 distinct actions covering the full spectrum of index and document operations. You can create new indices, retrieve existing ones, delete outdated indices, and manage individual documents with precision—all orchestrated automatically within your n8n workflows.
The benefits are substantial. Significant time savings: forget manually querying your Elasticsearch clusters or writing repetitive API calls. Set up smart automation rules that handle document creation, updates, and deletions based on triggers from any of n8n's 400+ integrations. Improved responsiveness: when data arrives from your CRM, e-commerce platform, or webhook, your Elasticsearch index updates instantly. Zero oversight: your workflows run 24/7, ensuring every piece of data lands in the right index at the right moment. Seamless integration: connect Elasticsearch to Slack, Google Sheets, databases, APIs, and hundreds of other tools in your tech stack.
Concrete use cases abound. Automatically index new customer records from your CRM like HubSpot into Elasticsearch for instant search capabilities. Sync product catalog updates from your e-commerce platform to your search index in real-time. Clean up outdated indices on a schedule. Retrieve and transform search results for reporting dashboards. The Elasticsearch n8n integration transforms your search infrastructure into a living, breathing component of your automated business processes.
How to connect Elasticsearch to n8n?
! 1 stepHow to connect Elasticsearch to n8n?
- 01
Add the node
Search and add the node in your workflow.
TIP💡 TIP: When setting up credentials for production Elasticsearch clusters, create a dedicated user with only the permissions needed for your automation tasks. Avoid using admin credentials in your n8n workflows—this follows the principle of least privilege and keeps your cluster secure even if credentials are exposed.- 01
Need help automating Elasticsearch with n8n?
Our team will get back to you in minutes.
Elasticsearch actions available in n8n
01 Action 01Elasticsearch Index - Get Many
This action retrieves multiple indices from your Elasticsearch cluster in a single operation. It's particularly useful when you need to audit your index landscape, generate reports on available indices, or dynamically select indices for downstream operations in your workflow.
Key parameters: Credential to connect with (required dropdown for authentication), Resource (set to "Index"), Operation (set to "Get Many"), Return All (toggle to fetch all indices or limit results), and Limit (numeric input for maximum indices to retrieve, default: 50, active when Return All is disabled).
Use cases: Build a dashboard displaying all active indices in your cluster, create workflows that iterate through indices for maintenance tasks, or generate weekly reports on index count and naming conventions.

02 Action 02Get Index
The Get Index action retrieves detailed information about a specific Elasticsearch index by its ID. Use this when you need metadata about an index—its settings, mappings, or aliases—before performing operations on it.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Index"), Operation (set to "Get"), Index ID (required text field for the unique identifier of the index to retrieve), and Additional Fields (expandable section for optional parameters to customize the request).
Use cases: Verify an index exists before attempting document operations, retrieve index mappings to validate data structure before bulk imports, or check index settings as part of a monitoring workflow.

03 Action 03Elasticsearch - Delete Index
This action permanently removes an Elasticsearch index and all its documents. Handle with care—deletion is irreversible. It's essential for cleanup workflows, removing temporary indices, or managing index lifecycle policies.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Index"), Operation (set to "Delete"), and Index ID (required text field for the identifier of the index to delete).
Use cases: Automatically clean up test indices after development workflows complete, remove outdated log indices older than your retention policy, or delete staging indices after data has been migrated to production.

04 Action 04Elasticsearch - Create Index
Create a new Elasticsearch index with this action. It's the foundation for any Elasticsearch workflow—you need indices before you can store documents. Use it to programmatically set up new indices based on triggers from other systems.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Index"), Operation (set to "Create"), Index ID (required text field where you define the name/identifier for the new index), and Additional Fields (expandable section to add optional properties like mappings or settings).
Use cases: Automatically create monthly indices for time-series data (logs, events, metrics), set up new product category indices when categories are added to your e-commerce platform, or create tenant-specific indices in multi-tenant applications.

05 Action 05Update Document
The Update Document action modifies an existing document within an Elasticsearch index. It's perfect for keeping your search data synchronized with changes occurring in source systems—without recreating documents from scratch.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Document"), Operation (set to "Update"), Index ID (required text field for target index), Document ID (required text field for the unique identifier), Data to Send (dropdown to define update content), Fields to Send (section for key-value pairs of fields to update), and Options (additional optional properties).
Use cases: Update customer records in your search index when CRM data changes, sync product price changes from your inventory system to Elasticsearch, or modify document metadata based on user actions in your application.

06 Action 06Get Many
Retrieve multiple documents from an Elasticsearch index with the Get Many action. This is your go-to for bulk document retrieval, feeding data into reports, or preparing batches for processing in subsequent workflow nodes.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Document"), Operation (set to "Get Many"), Index ID (optional text field for the index to query), Return All (toggle to retrieve all matching documents or limit results), Limit (numeric field for maximum documents to return, default: 50), Simplify (toggle to simplify response structure), and Options (additional parameters for customizing the query).
Use cases: Export documents from Elasticsearch to Google Sheets for business analysis, feed search results into a Slack or Discord notification summarizing recent entries, or retrieve document batches for data transformation and re-indexing.

07 Action 07Get Document
Fetch a single document by its exact ID with the Get Document action. It's the most direct way to retrieve specific records when you know the document identifier—ideal for lookup operations and detail pages.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Document"), Operation (set to "Get"), Index ID (required text field for the index containing the document), Document ID (required text field for the unique document identifier, supports fixed values or dynamic expressions), Simplify (toggle to simplify the response), and Options (section for additional optional parameters).
Use cases: Retrieve full customer details when processing an incoming webhook, fetch product information to include in automated email content, or look up configuration documents that control workflow behavior.

08 Action 08Delete Document
Remove a specific document from an Elasticsearch index using the Delete Document action. Essential for data hygiene workflows, GDPR compliance processes, or synchronizing deletions from source systems.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Document"), Operation (set to "Delete"), Index ID (required text field for the index containing the document), Document ID (required text field for the unique identifier of the document to delete, supports expressions for dynamic IDs), and Options (additional properties for advanced configuration).
Use cases: Automatically remove customer data from search indices upon deletion requests (GDPR), clean up test documents after automated testing workflows, or sync product removals from inventory systems to your search index.

09 Action 09Create Document
The Create Document action adds a new document to an Elasticsearch index. This is fundamental for any data ingestion workflow—whether you're indexing new customers, products, logs, or any other searchable content.
Key parameters: Credential to connect with (required dropdown), Resource (set to "Document"), Operation (set to "Create"), Index ID (required text field for the target index), Data to Send (dropdown determining how document data is defined), Fields to Send (section to add key-value pairs representing document fields and values), Additional Fields (optional extra properties for the document), and Options (additional configuration options).
Use cases: Automatically index new leads from your marketing automation platform, create searchable records from form submissions on your website, or index order data for building a searchable order history interface.

Build your first workflow with our team
Drop your email and we'll send you the catalog of automations you can ship today.
- Free n8n & Make scenarios to import
- Step-by-step setup docs
- Live cohort + community support
Frequently asked questions
Is the Elasticsearch n8n integration free to use?
Yes, the Elasticsearch integration is included natively in n8n at no additional cost. Whether you're using n8n Cloud or self-hosting n8n, you have full access to all 9 Elasticsearch actions without any premium fees or paid connectors. The only costs involved are those for your n8n instance itself (free for self-hosted, subscription-based for Cloud) and your Elasticsearch cluster hosting. This makes it an economical choice for teams looking to automate their search infrastructure without adding another line item to their SaaS budget.What data can I manage between Elasticsearch and n8n?
The Elasticsearch n8n integration lets you manage both indices and documents comprehensively. For indices, you can create new ones, retrieve single or multiple indices, and delete indices you no longer need. For documents, you have full CRUD capabilities: create new documents, retrieve single documents or batches, update existing documents with partial data, and delete documents. This covers virtually every Elasticsearch operation you'd need for typical automation scenarios—from data synchronization and search index management to log processing and GDPR compliance workflows.How long does it take to set up the Elasticsearch n8n integration?
Most users can have their first Elasticsearch workflow running in under 10 minutes. The setup process involves adding your Elasticsearch cluster credentials to n8n (URL, username, password or API key), which takes about 2 minutes. From there, configuring your first action—say, creating a document—requires filling in the Index ID and specifying the fields to send, another 3-5 minutes. The n8n interface is intuitive, and the Elasticsearch node's dropdowns guide you through each parameter. For more complex automation needs, our n8n agency can help you design and implement production-ready workflows. The main variable is how complex your workflow logic needs to be, not the Elasticsearch integration itself.



