Clear apache2 logfiles

To be completed by the original poster:

CMS Version

Specify the full CMS version you are using, including the revision number.
2.3.8

Installation Method

Docker

Operating System

Ubuntu 20.04

Issue

/var/log/apache2/access.log never being cleared. Was around 3gb

I have cleared this file manually, can i do this from xibo with an automated task?

snip:

192.168.70.116 - - [15/Jun/2021:13:03:26 +0000] “POST /xmds.php?v=5&method=notifyStatus HTTP/1.1” 200 514 “-” “Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.42000)”
192.168.14.99 - - [15/Jun/2021:13:03:27 +0000] “POST /xmds.php?v=5&method=notifyStatus HTTP/1.1” 200 514 “-” “Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.42000)”

best regards

Hello,

You can use “logrotate” packet to rotate xibo log

example from our installation

cat /etc/logrotate.d/xibo
/home/site-web/xibo/log/*.log {
su user group
daily
missingok
rotate 365
compress
notifempty
}

WARNING : if you change default log directory (like us), you have to edit apache2 conf as well

1 Like

Thank you i will add this in the docker

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.