2

After searching a bit, all I got is journalctl --vacuum-time.... However, this command doesn't delete service logs. So, how can I safely delete logs of a specific service from linux?

1 Answer 1

0

Use logrotate . You can edit configuration file and customize which log will be deleted and how frequently.

See man page for full options list: http://www.skrenta.com/rt/man/logrotate.8.html

1
  • Thanks for replying, it seems this command can only work with non binary logs. Is there any way to rotate journald binary logs?
    – William
    Commented Jan 21, 2019 at 14:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .