Skip to main content
Elasticsearch

Learn to set up Elasticsearch as a trigger for Torq workflows: Create integrations in Torq and connectors in Kibana for automated actions.

Updated over a week ago

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.

Create an Elasticsearch Trigger Integration in Torq

Perform the following steps in Torq.

  1. Go to Build > Integrations > Triggers > Elasticsearch 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.

  4. Click Add.

    Create an Elasticsearch trigger integration in Torq
  5. Copy the integration endpoint to use in Kibana.

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:

    1. Give the connector a meaningful name.

    2. Provide the secret you copied in the previous section as the Torq integration token.

    3. Provide the integration endpoint you copied in the last section as the Torq endpoint URL.

    4. Click Save & test.

      Create a Torq connector
  5. In the Create an action section, enter a valid JSON for the connector to send to Torq.

    Test the Torq connector
  6. In the Run and test section, click Run.

  7. Check the Last Event column on the Elasticsearch integrations page to verify that the integration you created got an event.

Premade 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

Did this answer your question?