Developer & DevOps

Execute Elasticsearch queries on a recurring schedule

5 nodes 306 106 Scheduled trigger
Download

Workflow Description

A scheduled automation that runs Elasticsearch queries at fixed intervals, evaluates the retrieved results against defined conditions, and performs targeted actions via HTTP requests or conditional logic based on query outcomes.

How it works

  1. 1.Trigger the workflow on the specified cron schedule
  2. 2.Send a query to Elasticsearch to retrieve matching data
  3. 3.Evaluate conditional logic on the returned results
  4. 4.Execute HTTP request or skip action based on condition evaluation

Use cases

  • Monitor error logs at regular intervals and alert the ops team if critical errors are detected
  • Extract performance metrics from Elasticsearch and push them to an external monitoring dashboard
  • Automatically archive or delete outdated log entries from Elasticsearch on a weekly basis

Requirements

  • Active Elasticsearch instance with accessible indices and sample data
  • Knowledge of cron expression syntax to define execution frequency
  • External HTTP endpoint or webhook URL to receive alerts or data (if applicable)
  • Proper authentication credentials for Elasticsearch access

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Schedule Elasticsearch

Details

Trigger Scheduled trigger
Nodes 5
Apps 2
Views 306
Downloads 106

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (5)

Cron Trigger

Cron

#1

Elasticsearch Query

Elasticsearch

#2

Check for Alerts

If

#3

Create Work Item

HTTP Request

#4

No Operation, do nothing

No Op

#5