auditlog.log managment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

auditlog.log managment

Post by TBT »

We noticed /usr/local/nagiosxi/var/components/auditlog.log is eating up a lot of disk.

1. Can size/rotation be managed within XI or should logrotate be setup on the auditlog.log?
2. Any harm in deleting the auditlog.log while Nagios is running in situations where the server is running out of diskspace?

Please advise,
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: auditlog.log managment

Post by ssax »

1. It would need to be setup with logrotate, you could throw something like this into /etc/logrotate.d:
- Adjust per your requirements

Code: Select all

/usr/local/nagiosxi/var/components/auditlog.log {
    missingok
    notifempty
    size 1024M
    create 0660 apache nagios
    su apache nagios
    rotate 1
    compress
}
2. No harm, you can truncate it with the command below at any time if you need, it will just remove the auditlog.log entries, the DB Audit Log entries (that Admin > Audit Log uses) should still be retained based on the retention settings in Admin > Performance Settings > Databases > Max Audit Log Age.

Code: Select all

>/usr/local/nagiosxi/var/components/auditlog.log
Locked