Page 1 of 1

Audit Log - Retention setting?

Posted: Fri Apr 07, 2017 8:43 am
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?

Re: Audit Log - Retention setting?

Posted: Fri Apr 07, 2017 12:43 pm
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.

Re: Audit Log - Retention setting?

Posted: Fri Apr 07, 2017 2:26 pm
by TBT
Yes, thank you.