Skip to content
Shellbay

Maintenance · about 1 min · 2 steps

Trim old system logs

Deletes systemd journal entries older than the number of days you choose, freeing disk space.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: not available — Alpine has no systemd journal; its logs are files in /var/log. Use Rotate log files instead.

What it changes on your server

  • Deletes archived journal files whose entries are all older than the days you choose.
  • Log files in /var/log and the journal's settings aren't changed.

What Shellbay asks you

  1. How many days of logs should be kept?

    Entries older than this are deleted. 14 days is usually enough to look back at a problem.

    Days to keep
    A whole number from 1 to 365. Default: 14

    Example: 14

Steps

  1. Delete old journal entries
  2. Check older files are gone

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • The journal now keeps ‹days to keep› days of entries.