[BlueOnyx:26871] Re: Log rotation

Michael Stauber mstauber at blueonyx.it
Mon Mar 25 01:58:11 -05 2024


Hi Aaron,

> On 5211R I have noticed that log rotation does not seem to be completely 
> working. Logs rotate nightly within /var/log/httpd, but there used to be 
> some script that would split them up by virtual site and append the 
> day’s logs to each virtual site’s ~/logs directory. That part doesn’t 
> seem to be happening.
> 
> Any ideas? Is there an admin UI switch I’ve missed?


This seems to be working fine for me and the split log parts relevant to 
each Vsite are stored here:

/home/sites/<FQDN>/var/logs

Can you check what files (and folders) you have there?

On my end it looks like this:

[root at 5211r ~]# tree /home/sites/5211r1.smd.net/var/logs -D -L 2
/home/sites/5211r1.smd.net/var/logs
├── [Dec 26  2022]  2021
│   ├── [Dec 26  2022]  1
│   ├── [Dec  1  2022]  11
│   └── [Dec  1  2022]  8
├── [Dec 26  2022]  2022
│   ├── [Dec  1  2022]  11
│   ├── [Dec 28  2022]  12
│   └── [Dec  1  2022]  6
├── [Dec  2 00:00]  2023
│   ├── [Feb  1  2023]  1
│   ├── [Nov  1 00:00]  10
│   ├── [Dec  1 00:00]  11
│   ├── [Jan  1 00:00]  12
│   ├── [Feb 26  2023]  2
│   ├── [Apr  1  2023]  3
│   ├── [Apr 30  2023]  4
│   ├── [May 31  2023]  5
│   ├── [Jul  1  2023]  6
│   ├── [Aug  1  2023]  7
│   ├── [Sep  1  2023]  8
│   └── [Oct  1 00:00]  9
├── [Mar  2 00:00]  2024
│   ├── [Feb  1 00:00]  1
│   ├── [Mar  1 00:00]  2
│   └── [Mar 25 00:00]  3
├── [Dec 24  2022]  web.daily
├── [Mar 25 00:00]  web.json
└── [Mar 25 00:00]  web.log


-- 
With best regards

Michael Stauber


More information about the Blueonyx mailing list