Skip to content

Configuration File Reference

Ahmed edited this page Mar 16, 2026 · 2 revisions

Configuration File Reference (eventlens.yaml)

EventLens loads its runtime behavior from a YAML configuration file.

Settings Search Order

  1. EVENTLENS_CONFIG environment variable
  2. ./eventlens.yaml in the working directory
  3. ~/.eventlens/config.yaml
  4. /etc/eventlens/config.yaml

Core Configuration Structure

server:
  port: 9090
  allowed-origins:
    - "http://localhost:9090"
  auth:
    enabled: false
    username: admin
    password: changeme

datasource:
  url: jdbc:postgresql://postgres:5432/your_db_name
  username: your_user
  password: your_password
  table: eventlens_events   # Postgres View name
  columns:
    event-id: event_id
    aggregate-id: aggregate_id
    aggregate-type: aggregate_type
    sequence: sequence_number
    event-type: event_type
    payload: payload
    timestamp: timestamp
    global-position: global_position

kafka:
  bootstrap-servers: localhost:9092
  topic: domain-events

replay:
  default-reducer: generic

anomaly:
  scan-interval-seconds: 60
  rules: []

ui:
  theme: dark               # dark | light

See Database Schema Requirements, Kafka Integration, and Anomaly Detection Rules for more granular configuration options.

Return Home

Clone this wiki locally