14. Tracing Log File Writes
Beginner Mode
Start your terminal to use beginner mode.
Scenario
The /var/log/messages file has been growing unusually fast, filling up disk space within hours.
Task
Identify the process that is writing heavily to /var/log/messages by monitoring system activity in real time. Save the process details using ps and last 50 lines of logs at /home/devops/excessive_log_process.txt
Example
# Before (log file growing rapidly)
/var/log/messages: 15 GB and increasing
Disk usage: 92% and climbing
# After (responsible process identified)
Process identified: rsyslogd (PID 1234)
Confirmed active writes to /var/log/messages
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
Bloomberg
Accenture
Coinbase
Adobe
EPAM
Twitch
Amazon
Kayak
Autodesk
Lyft
Revolut
RedHat
Datadog
Palantir
TCS
HashiCorp
Google
DeutscheBank
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Yelp
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Elastic
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks