For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Add an ElasticSearch connector

Add an ElasticSearch connector so Harness can use ElasticSearch as a verification provider.

Elasticsearch is a distributed search and analytics engine, commonly deployed as part of the ELK stack, that stores and searches large volumes of log and event data. Add an Elasticsearch connector in Harness to let your pipelines query your Elasticsearch logs. Harness can then use that data in Continuous Verification to compare log patterns and detect anomalies after a deployment, helping you confirm a release is healthy or trigger a rollback.

Go to Overview for information about all monitoring and logging connectors, such as scopes and delegate selection.


What you will learn from this topic


Before you begin

  • ElasticSearch access: The URL of your ElasticSearch server, and credentials for the authentication method you plan to use.

  • Harness permissions: Permission to create connectors and secrets in Harness.


Add an ElasticSearch connector

You can add an ElasticSearch connector at the project, org, or account scope. This procedure covers the project scope, and the process is the same for org and account.

  1. Open your Harness project.

  2. In Project Settings, select Connectors.

  3. Click New Connector, then select ElasticSearch under Monitoring and Logging Systems. The ElasticSearch connector settings appear.

Overview

Configure the identity fields for the connector:

  1. In Name, enter a name for the connector. Harness generates the Id from the name.

  2. Optionally, add a Description and Tags.

  3. Click Continue.

ElasticSearch connector overview settings

Credentials

Configure the following settings:

  1. In URL, enter the URL of your ElasticSearch server.

  2. In Authentication, select one of the following options:

  • Username and Password:

  • API Key:

    • API ID: Enter the public identifier for your Elasticsearch cluster.

    • API Key: Enter the corresponding API key string to authenticate the connection.

  • Bearer Token(HTTP Header): Authenticate with a bearer token sent in the HTTP header.

  • No Authentication: Connect without credentials. Use this option only when your ElasticSearch server does not require authentication.

  1. Click Continue.

ElasticSearch connector credentials with the Username and Password authentication option

Delegates Setup

Select one of the following options:

  • Use any available Delegate: Harness selects an available delegate at runtime.

  • Only use Delegates with all of the following tags: Enter the tags of the delegates Harness must use with this connector.

Click Save and Continue.

ElasticSearch connector delegates setup with the delegate connectivity list

Verify Connection

Click Finish after the connection test succeeds. The connector is listed in Connectors page.


Sample YAML

The following example shows a YAML for the ElasticSearch connector created in this topic.

YAML - ElasticSearch connector

For the full connector YAML schema, including how to skip connector preflight checks, go to Create a connector using YAML.


Next steps

Last updated

Was this helpful?