Corosync Logging

Setting up corosync logging, by default the data is logged to /var/log/syslog in ubuntu.

corosync config - /etc/corosync/corosync.conf

    
    logging {
            fileline: off
            to_stderr: yes
            to_logfile: yes
            to_syslog: no
            syslog_facility: daemon
            debug: off
            logfile: /var/log/corosync/corosync.log
            timestamp: on
            logger_subsys {
                    subsys: AMF
                    debug: off
                    tags: enter|leave|trace1|trace2|trace3|trace4|trace6
            }

logrotate config - /etc/logrotate.d/corosync

    
    /var/log/corosync/*.log {
            weekly
            missingok
            rotate 52
            compress
            delaycompress
            notifempty
            create 640 root adm
            sharedscripts
            copytruncate
    }
Share