API Key Authentication Setup
Create an API key for Elasticsearch authentication- Log in to your Elasticsearch cluster or Elastic Cloud
- Navigate to Stack Management > Security > API Keys
- Click ‘Create API key’
- Enter a name and description
- Select the appropriate permissions (read access to indices)
- Click ‘Create’
- Copy the generated API key immediately
Username/Password Authentication Setup
Use basic authentication with Elasticsearch- Ensure your Elasticsearch cluster has security enabled
- Create a user in Elasticsearch Security
- Assign appropriate roles to the user (e.g., read-only access)
- Note the username and password
Find Your Elasticsearch Host and Index
Locate your Elasticsearch cluster hostname and index name- Find your Elasticsearch cluster endpoint
- For Elastic Cloud: <deployment-name>.<region>.cloud.es.io
- For self-hosted, use your cluster’s hostname or IP
- Identify the index name containing your logs
- Common index patterns: logs-, app-logs-, filebeat-*
Field Reference
The following fields are used when configuring this integration:- API Key (
ApiKey) - Elasticsearch Host (
Host) - Elasticsearch Index (
Index) - Password (
Password) - Username (
Username)