Interview practice question
Containerising an app that writes logs to files
Cloud & DevOps · Docker · Intermediate
You are containerising a legacy application that writes its logs to /var/log/app/app.log. How do you handle logging?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Prefer configuring app to log to stdout.
- Symlink log file to /dev/stdout.
- Sidecar/agent tailing file from volume.
- Rotate if files kept.
- Avoid logs lost with container.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.