ownCloud Logfile Size
This tid bit was picked up from an ownCloud Blog item. The "owncloud.log" file, lives in the ownCloud "data directory", can reach a rather large file size. In the case of the blog a file size of 5.9 gigabytes big. Yeah, 6318901632 bytes.
ownCloud can keep that file in check, but you have to enable that by adding the following to "config.php":
'log_rotate_size' => '100 MiB',
Using a text editor the config.php file will look like this afer the change:
$CONFIG = array (
'instanceid' => '515c94d976c01',
'passwordsalt' => '6144794036e3aabc7d239238266b8e',
'datadirectory' => '/var/hda/files/owncloud7/data',
'dbtype' => 'mysql',
'version' => '7.0.3.4',
'dbname' => 'owncloud7',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'owncloud7',
'dbpassword' => 'owncloud7',
'installed' => true,
'theme' => ,
'maintenance' => false,
'log_rotate_size' => '100 MiB',
);
Reboot the server.
On a regular basis before backups are done make sure to delete any old log files no longer required.
Ou comment je me suis retrouvé avec un fichier log de 7Go (dans le même style que FreshRSS).