linux var/log/journal code example
Example: ubuntu cleanup systemd journal
$ journalctl --vacuum-time=10d
...
Vacuuming done, freed 2.3G of archived journals on disk.
$ journalctl --vacuum-time=10d
...
Vacuuming done, freed 2.3G of archived journals on disk.