Elasticsearch Management

Configure saved Elasticsearch endpoints for platform-wide observability

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

  1. Navigate to Administration > Elasticsearch Management
  2. Click Add Elasticsearch
  3. 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
  1. 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

  1. Click the Edit icon next to the saved configuration
  2. Modify any field (Name, URL, Index, credentials, SSL verification)
  3. Click Save to update

Delete an Endpoint

  1. Click the Delete icon next to the saved configuration
  2. Confirm the deletion

How Users Select Elasticsearch

When users configure global parameters for a scenario or workflow, they can:

  1. Expand the Global parameters section
  2. Locate the Elasticsearch parameter
  3. Click the dropdown to view all saved Elasticsearch configurations
  4. 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 management
  • krkn-scenarios-* — scenario-specific index pattern
  • krkn-{environment}-* — environment-specific indices

Verification

After adding an Elasticsearch endpoint, verify it works:

  1. Run a simple chaos scenario with the Run Scenarios feature
  2. Select the saved Elasticsearch configuration in Global parameters
  3. Execute the scenario
  4. 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.

Last modified August 21, 2026: adding elasticsearch details (#601) (b183880)