This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation. |
Difference between revisions of "Activity log"
From Group-Office Groupware and CRM Documentation
Line 3: | Line 3: | ||
==Cron job for rotating the log== | ==Cron job for rotating the log== | ||
− | Log entries older then 14 days can be dumped to /var/log/groupoffice/*.csv with command: | + | Log entries older then 14 days (Can be changed with $config['log_max_days']=<number of days>;) can be dumped to /var/log/groupoffice/*.csv with command: |
<pre>./groupofficecli.php -r=log/log/rotate</pre> | <pre>./groupofficecli.php -r=log/log/rotate</pre> |
Revision as of 14:47, 8 January 2013
You can optionally install the activity log module. This will log all delete, update and add actions. It also logs logins,logouts and outgoing e-mail. The log module may have an performance impact because it does extra database transactions. Log entries will be stored for 14 days. Then they will be dumped into a CSV file on the server.
Cron job for rotating the log
Log entries older then 14 days (Can be changed with $config['log_max_days']=<number of days>;) can be dumped to /var/log/groupoffice/*.csv with command:
./groupofficecli.php -r=log/log/rotate
You can setup to rotate the log by creating a config file for logrotate in /etc/logrotate.d/groupoffice.
Put this in it:
/var/log/groupoffice/*.csv { weekly missingok rotate 52 compress delaycompress notifempty create 640 root adm sharedscripts }
Debian packages will install this automatically.