Get the most out of your Centmin Mod LEMP stack
Become a Member

Journalctl logs rotation or clean up

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

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,807
    369
    83
    May 31, 2014
    Ratings:
    +711
    Local Time:
    9:04 AM
    Nginx-1.17.x
    MariaDB 10.3.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

    44,426
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,696
    Local Time:
    4:04 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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.