Elasticsearch Management
Elasticsearch Management Admin
Administrators can configure and save Elasticsearch endpoints that users can reference when executing chaos scenarios. This enables centralized observability configuration without requiring users to manually enter connection details.
Overview
Elasticsearch integration allows krkn scenarios to index execution metrics, logs, and telemetry data for analysis and historical tracking. Instead of requiring each user to configure Elasticsearch details manually, admins can:
- Pre-configure Elasticsearch endpoints with connection details
- Save named configurations for reuse across all scenarios
- Control which Elasticsearch endpoints are available platform-wide
Users can then select from the saved Elasticsearch configurations when setting global parameters during scenario execution.
Adding an Elasticsearch Endpoint
- Navigate to Administration > Elasticsearch Management
- Click Add Elasticsearch
- Configure the following details:
| Field | Description | Required |
|---|---|---|
| Name | Friendly name for this configuration (e.g., “Production ES”, “Dev Cluster”) | Yes |
| URL | Elasticsearch endpoint URL (e.g., https://elasticsearch.example.com:9200) |
Yes |
| Index | Index name or pattern for storing krkn data (e.g., krkn-chaos-*) |
Yes |
| Username | Authentication username (if required) | No |
| Password | Authentication password (if required) | No |
| Verify SSL | Whether to verify SSL certificates (toggle) | Yes |
- Click Save to add the configuration to the saved list
Managing Saved Configurations
View Saved Elasticsearch Endpoints
The Elasticsearch Management page displays all saved configurations:
- Name: Friendly identifier shown to users
- URL: Elasticsearch endpoint
- Index: Target index pattern
- Actions: Edit or Delete options
Edit an Endpoint
- Click the Edit icon next to the saved configuration
- Modify any field (Name, URL, Index, credentials, SSL verification)
- Click Save to update
Delete an Endpoint
- Click the Delete icon next to the saved configuration
- Confirm the deletion
How Users Select Elasticsearch
When users configure global parameters for a scenario or workflow, they can:
- Expand the Global parameters section
- Locate the Elasticsearch parameter
- Click the dropdown to view all saved Elasticsearch configurations
- Select an Elasticsearch endpoint by name (e.g., “Production ES”)
The selected configuration automatically applies the admin-defined connection details (URL, index, credentials) to the scenario execution.
Users cannot:
- Add new Elasticsearch endpoints from the scenario configuration interface
- Edit existing saved configurations
- View sensitive details like passwords (only admins can see/edit credentials)
Users can:
- Choose from the dropdown list of saved Elasticsearch endpoints
- Opt not to use Elasticsearch (by leaving the parameter unset)
Best Practices
Naming Conventions
Use descriptive names that indicate the purpose or environment:
- ✅
Production Observability - ✅
Staging Metrics - ✅
Dev Team Shared ES - ❌
ES1,Elasticsearch,Test
Security
- Use dedicated credentials for krkn with limited write permissions to specific indices
- Enable SSL verification for production endpoints
- Restrict index patterns to prevent accidental data overwrites (e.g.,
krkn-*not*)
Index Patterns
Use time-based or scenario-based index naming:
krkn-chaos-{YYYY-MM-DD}— daily indices for easy retention managementkrkn-scenarios-*— scenario-specific index patternkrkn-{environment}-*— environment-specific indices
Verification
After adding an Elasticsearch endpoint, verify it works:
- Run a simple chaos scenario with the Run Scenarios feature
- Select the saved Elasticsearch configuration in Global parameters
- Execute the scenario
- Check the Elasticsearch index for new documents:
curl -X GET "https://elasticsearch.example.com:9200/krkn-chaos-*/_search?pretty" \ -u username:password
Successful indexing confirms the configuration is correct and accessible from the krkn-operator platform.