Skip to content

Loki & Grafana Integration

Deploy Loki and Grafana to visualize and query DNS logs in real-time.

  1. Create a data folder for storage:

    mkdir -p ./data
    

  2. Download and start the Loki Docker Compose stack:

  3. Loki docker-compose.yml

    docker compose up -d
    

  4. Run DNS-collector with the Loki integration configuration:

  5. Loki config.yml

    ./dnscollector -config docs/_integration/loki/config.yml
    

  6. Access Grafana at http://localhost:3000 (default login: admin / badpassword). Go to Explore and search with the query {job="dnscollector"}.