Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
8900 Weergaven

In Odoo13, 'logrotate = True' parameter is not working. So logs are updating in same file & file size is getting larger. Now I need to manually delete the log files to save the space in server.

In Odoo12 & below versions, if we set logrotate=True, log files were saved to corresponding dates & logs greater than particular interval will delete from the server also.

Why this is not working in Odoo13?

If there have any  other methods to implement log rotation, please share the steps.


Thanks in advance..:)

Avatar
Annuleer
Beste antwoord

[Please go through this.]

https://github.com/odoo/odoo/commit/92d5a4bce5a3878e10427ec8dfef8c4b21f64f3d#diff-3ed4d091d4b03006d32f1f4468c2c630895f957d0ac6016be7c73852e885b800

Avatar
Annuleer
Auteur

Thanks for the update

Beste antwoord

However you can use still use logrotate as per below steps-

  • create a new file under
    • vi /etc/logrotate.d/yourodoo-app
    • Copy paste below line for daily logs
/var/log/example-app/*.log {
    daily
    missingok
    rotate 14
    compress
    notifempty
    create 0640 www-data www-data
    sharedscripts
    postrotate
        systemctl reload example-app
    endscript
}

For reference check below tutorial

https://www.digitalocean.com/community/tutorials/how-to-manage-logfiles-with-logrotate-on-ubuntu-16-04



 

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jul. 23
2371
0
mei 23
2208
3
mrt. 25
23531
1
nov. 22
2036
1
mei 22
5620