Elasticsearch
  • 01 May 2023
  • 1 Minute to read
  • Dark
    Light

Elasticsearch

  • Dark
    Light

Article Summary

Elasticsearch is a distributed, free, open search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured. Known for its REST APIs, distributed nature, speed, and scalability, Elasticsearch is a central component of the Elastic Stack, a set of free and open tools for data ingestion, enrichment, storage, analysis, and visualization.

Create an Elasticsearch trigger integration in Torq

Perform the following steps in Torq.

  1. Go to Integrations > Triggers, search for the Elasticsearch card, and click Add.
  2. Give the integration a meaningful name.
  3. Copy the authentication header secret and save it. You'll need it to create a Torq connector in Kibana.
    Create an Elasticsearch trigger integration in Torq
  4. Click Add.
  5. Copy the integration endpoint to use in Kibana.
    Copy the Elasticsearch integration endpoint

Create a Torq connector in Kibana

Perform the following steps in Kibana.

  1. Go to Stack Management > Connectors.
  2. Select Create connector.
    Create a connector in Elastic
  3. Locate and select the Torq connector.
  4. Configure the Torq connector:
    • Give the connector a meaningful name.
    • Provide the secret you copied in the previous section as the Torq integration token.
    • Provide the integration endpoint you copied in the last section as the Torq endpoint URL.
      Create a Torq connector
  5. Click Save & test.
  6. In the Create an action section, enter a valid JSON for the connector to send to Torq.
    Test the Torq connector
  7. In the Run and test section, click Run.
  8. Check the Last Event column on the Elasticsearch integrations page to verify that the integration you created got an event.

Use Elasticsearch to trigger a workflow in Torq

  1. Use the Torq connector as an action in Elasticsearch rules. 
  2. Modify the action body according to your needs.
  3. Create a workflow in Torq and set the Elasticsearch integration you created as the trigger.
  4. When the rule criteria are met, the action body will be sent to Torq, and the workflow you created will be triggered.

Available steps

These are the public steps for Elastic. Don't see the step you need? No problem; you can easily create a custom step.

  • Get a list of pending tasks
  • Get hot threads
  • Get information about nodes
  • Get information for a cluster
  • Get stats for a cluster
  • Get stats for all nodes
  • Get the health of a cluster

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.