Audit Log - Retention setting?

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

Audit Log - Retention setting?

Post by TBT »

It appears Audit Log (domain.com/nagiosxi/admin/auditlog.php) has only the past month available. I can't seem to find any settings for this within the GUI, where are retention periods set?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Audit Log - Retention setting?

Post by cdienger »

Greetings,

You can set the audit log retention time in /usr/local/nagiosxi/html/config.inc.php

// DB-specific connection information
$cfg['db_info'] = array(
"nagiosxi" => array(
"dbtype" => 'mysql',
"dbserver" => '',
"user" => 'nagiosxi',
"pwd" => 'n@gweb',
"db" => 'nagiosxi',
"dbmaint" => array( // variables affecting maintenance of db
"max_auditlog_age" => 30, // max time (in DAYS) to keep audit log entries
"max_commands_age" => 480, // max time (minutes) to keep commands
"max_events_age" => 480, // max time (minutes) to keep events
"optimize_interval" => 60, // time (in minutes) between db optimization runs
"repair_interval" => 0, // time (in minutes) between db repair runs
),


An option to change this from the GUI will be available in 5.5.

Let me know if you have any further questions or if the thread can be closed.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Audit Log - Retention setting?

Post by TBT »

Yes, thank you.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Locked