Bug 52502 - Feature: Implement logrotation of itslearning app
Feature: Implement logrotation of itslearning app
Status: VERIFIED DUPLICATE of bug 52503
Product: UCS
Classification: Unclassified
Component: logrotate
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on: 52504 52503
Blocks:
  Show dependency treegraph
 
Reported: 2020-12-16 08:43 CET by Marc Schwarz
Modified: 2020-12-21 10:33 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schwarz univentionstaff 2020-12-16 08:43:15 CET
In relation to #52495 it should also be possible to configure logrotate for itslearning via the respective logrotate UCRs as the log increases significant in larger environments.

ATM a manual created logrotate is configured and the uncompressed logs are removed from time to time by the administrator.

/var/log/univention/listener_modules/itslearning.log {
        daily
        rotate 14
        create 640 root adm
        compress
        missingok
        notifempty

furthermore, there is no logrotation at all for the log, which is created inside  of the app. this has been approved by Itslearning, who also told me, that it is already on their agenda. This is only for reference:

univention-app shell itslearning
/ # cd /var/lib/univention-appcenter/apps/itslearning
/var/lib/univention-appcenter/apps/itslearning # ls -lah
total 95M    
drwxr-xr-x    1 root     root        4.0K Nov 23 08:42 .
drwxr-xr-x    1 root     root        4.0K Jul 16 11:53 ..
drwxr-xr-x    2 root     root        4.0K Jul  9 14:03 conf
drwxr-xr-x    3 root     root        4.0K Mar 27  2020 data
--w---x---    1 root     root       51.0M Dec 16 07:38 log20200721162053.txt
--w---x---    1 root     root       29.7M Nov 23 08:42 log20200721162053.txt.gz
-rwx------    1 root     root       14.1M Jul 16 11:51 main

I think, it would be good, to make the log*.txt file available outside of the app docker.
Comment 1 Daniel Tröder univentionstaff 2020-12-16 09:02:32 CET

*** This bug has been marked as a duplicate of bug 52503 ***