1 - Elasticsearch Connection Setup
The first step in using Elasticsearch with Harness is to set up an Elasticsearch Verification Provider in Harness.
A Harness Verification Provider is a connection to monitoring tools, such as Elasticsearch. Once Harness is connected, you can use Harness 24/7 Service Guard and Deployment Verification with your Elasticsearch data and analysis.
Elasticsearch Verification Provider Setup
To add Elasticsearch as a Harness Verification Provider, do the following:
- In Harness, click Setup.
- Click Connectors, and then click Verification Providers.
- Click Add Verification Provider, and select ELK. The Add ELK Verification Provider dialog for your provider appears.
- Complete the following fields of the Add ELK Verification Provider dialog.
Select the server type for the connection. You can choose whether to access your ELK server directly using the Elasticsearch Server URL (recommended), or using the Kibana Server URL.
Enter the URL of the server. The format is http(s)://server:port/. The default port is 9200.
Username and Password
Enter the credentials to authenticate with the server.
Some systems provide Elasticsearch as a service and use access tokens.If you have token based authentication, provide the authentication header that is passed when making the HTTP request.
Header: APITokenKey. Example: x-api-key (varies by system).
Value: APITokenValue. Example: kdsc3h3hd8wngdfujr23e23e2.
Enter a display name for the provider. If you are going to use multiple providers of the same type, ensure you give each provider a different name.
If you want to restrict the use of a provider to specific applications and environments, do the following:
In Usage Scope, click the drop-down under Applications, and click the name of the application.
In Environments, click the name of the environment.
- When you have set up the dialog, click TEST.
- Once the test is completed, click SUBMIT to add the Verification Provider.
If you receive an error, see Troubleshooting.