Rotate and manage logs

Rotate and manage logs in Linux — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
Rotate the auth and syslog files today: archive /var/log/auth.log and /var/log/syslog older than 7…
Rotate the auth and syslog files today: archive /var/log/auth.log and /var/log/syslog older than 7 days, compress them, update the rotation symlink, and restart the logrotate service; verify post-rotation that file descriptors were released and file sizes are back to normal.

Improve — make it easier to accept

+
Before rolling a new rotation policy, make it easy for ops to approve: show current disk usage…
Before rolling a new rotation policy, make it easy for ops to approve: show current disk usage caused by old logs, surface which services hold open descriptors preventing rotation, highlight retention costs for long-term storage, and flag any logs that contain PII which require special handling.

Decide — diagnose the stuck moment

+
I triggered logrotate and compressed old logs, but df still shows disk usage high and lsof reveals…

Logrotate ran but disk usage didn't drop because files stayed open.

I triggered logrotate and compressed old logs, but df still shows disk usage high and lsof reveals deleted log files still held by rsyslog. I don't know whether to restart rsyslog now or to force a reopen from the service. What is the recommended immediate action that minimizes service disruption and ensures the space is reclaimed safely?

Become — change the pattern

+
We keep hitting full disks on our log partitions because rotations get applied unevenly and some…

We repeatedly run out of disk because logs aren't rotated or archived consistently.

We keep hitting full disks on our log partitions because rotations get applied unevenly and some hosts never upload archives to long-term storage. Which habit change will most sustainably fix this: enforcing a central rotation policy with automated enforcement, scheduling a weekly audit to catch failures, or charging an owner per host? Recommend one change and a first enforcement step I can take this week.

Next to this one

Other operating system work people do in Linux.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.