Learn about Centmin Mod LEMP Stack today
Register Now

Journalctl logs rotation or clean up

Discussion in 'System Administration' started by pamamolf, Feb 7, 2020.

  1. pamamolf

    pamamolf Well-Known Member

    4,128
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    10:09 AM
    Nginx-1.29.x
    MariaDB 10.6.x
    Hello :)

    Does Centminmod has any mechanism to clear the Journalctl logs?

    As i can see at:
    Code:
    /etc/systemd/journald.conf
    value:
    Code:
    SystemMaxUse=
    is disabled....


    Isn't better to have there a limit to clear or rotate or both ?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    60,079
    12,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,229
    Local Time:
    5:09 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Centmin Mod currently doesn't do any changes to the default for systemd for CentOS 7 journald.conf and Linux Logging with Systemd - The Ultimate Guide To Logging

    you can check size
    Code (Text):
    du -sh /run/log/journal/

    Code (Text):
    du -sh /run/log/journal/
    50M     /run/log/journal/
    

    and
    Code (Text):
    journalctl --disk-usage

    Code (Text):
    journalctl --disk-usage
    Archived and active journals take up 48.3M on disk.