Join the community today
Register Now

Beta Branch update tools/auditd.sh configuration in 130.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 15, 2024.

  1. eva2000

    eva2000 Administrator Staff Member

    52,749
    12,077
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,604
    Local Time:
    7:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update tools/auditd.sh configuration in 130.00beta01

    - for optional MariaDB Audit Plugin update default configured log rotation size from 1MB to 250MB and update saved log rotation number from 5 to 10. So max disk space usage goes from 5x 1MB = 5MB to 10x 250MB = 1250MB. Not saving enough audit logging defeats the purpose of enabling it in the first place.
    - if you have previously enabled MariaDB Audit Plugin via persistent config file /etc/centminmod/custom_config.inc set variable AUDIT_MARIADB='y' before running tools/auditd.sh script, you can update to the new defaults by changing existing variable values in /etc/my.cnf

    from

    server_audit_file_rotate_size=1000000
    server_audit_file_rotations=5"

    to

    server_audit_file_rotate_size=250000000
    server_audit_file_rotations=10"

    and restarting MariaDB MySQL server

    systemctl restart mariadb

    or via Centmin Mod command shortcut


    mysqlrestart

    Continue reading...

    130.00beta01 branch

    Support Centmin Mod


    If you find Centmin Mod useful, please help support Centmin Mod