"Ravenna": Logs Missing in ELK Pipeline
Scenario: "Ravenna": Logs Missing in ELK Pipeline
Level: Medium
Type: Fix
Tags: elk
Access: Paid
Description: You are on call for the orders-api service. Central logging uses a small ELK stack on Docker Compose: an application container, Filebeat, Logstash, and Elasticsearch.
Operations reports that no order events show up in Elasticsearch, even though the application container is healthy and keeps writing logs. SRE left notes that the service contract specifies plain-text log lines.
The stack lives under /home/admin/ravenna and is managed with Docker Compose. Elasticsearch is reachable on the VM at http://127.0.0.1:9200.
Notes:
1. Wait until all four containers are Up before debugging (docker compose -f /home/admin/ravenna/docker-compose.yml ps). Elasticsearch can take up to two minutes to become healthy.
2. Internet access is not needed; container images are preloaded in the local Docker engine.
Root (sudo) Access: True
Test: At least one document containing order_shipped is indexed in Elasticsearch under the orders-* index pattern.
Quick check:
curl -s 'http://127.0.0.1:9200/orders-*/_search?q=order_shipped&size=1' | jq .The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can read and execute.
Time to Solve: 30 minutes.