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
Jump to: navigation, search
(Created page with "You can optionally install the activity log module. This will log all delete, update and add actions. It also logs logins and logouts. The log module may have an performance impa...")
 
(Cron job for rotating the log)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
You can optionally install the activity log module. This will log all delete, update and add actions. It also logs logins and logouts. 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.
+
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==
 
==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>
 +
 +
An example cron entry:
 +
 +
<pre>0 0 * * * root /usr/bin/php /usr/share/groupoffice/groupofficecli.php -r=log/log/rotate -c=/etc/groupoffice/config.php > /dev/null</pre>
  
 
You can setup to rotate the log by creating a config file for logrotate in /etc/logrotate.d/groupoffice.
 
You can setup to rotate the log by creating a config file for logrotate in /etc/logrotate.d/groupoffice.

Latest revision as of 12:28, 24 February 2014

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

An example cron entry:

0 0 * * * root /usr/bin/php /usr/share/groupoffice/groupofficecli.php -r=log/log/rotate -c=/etc/groupoffice/config.php > /dev/null

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.