Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How do you manage size of log directory ?

By
Clément THOMAS
on 4/11/13, 12:52 PM 4,164 views

In an ubuntu-server i've set log directory when openerp server start.

But I don't know when files are deleted and what append if a loop write in logs. how to manage maximum size of directory ?

0

Gustavo

--Gustavo--
950
| 2 1 4
Buenos Aires, Argentina
--Gustavo--

Python developer, big fan of sailing

Gustavo
On 4/11/13, 3:08 PM

I would not worry about the log size for OpenERP, it is really small compared to other stuff running in your linux server. Now, if you really worry about your log size, do this:

Hope this helps,

I am trying to delete the log file, coz it is 18 GB, How do we delete the log file

Jayanthi
on 10/24/16, 9:00 AM
0
Nicolas C
On 4/11/13, 4:17 PM

Hello,

You could take a look at : /etc/logrotate.conf and /etc/logrotate.d/postgresql-common

My advice will be to copy (as root) postgresql-common file like :

cp /etc/logrotate.d/postgresql-common /etc/logrotate.d/openerp

then edit the "/etc/logrotate.d/openerp" file (vi or other editor) and change the file name on the first line (replace "/var/log/postgresql/*.log" by "/var/log/openerp-server.log")

After this, depending the size of the openerp-server.log file, you could change from weekly to daily for the logrotate frequency within /etc/logrotate.d/openerp file.

Hope this will help you.

Have a nide day. @++ Nicolas

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/11/13, 12:52 PM
Seen: 4164 times
Last updated: 3/16/15, 8:10 AM