Skip to Content
Menu
This question has been flagged
3 Replies
8105 Views

is it possible to have event logs on my server? show all activities that have been performed on the database 

Avatar
Discard
Best Answer

Hi,

If you need to get the logs of all the activities that has been performed in the database, you can use this module in the odoo store:  https://apps.odoo.com/apps/modules/14.0/auditlog/


You can check the module description to understand how to configure the logs, you can decide for which models and on what operations the logs has to perform.


If you are looking for the odoo log, where you can see all the activities in technical way, you can check the log file of the odoo instance.


Also, you can check this way of logging from user interface in odoo: https://www.youtube.com/watch?v=tFR_z4J7p28


Thanks

Avatar
Discard
Best Answer

Hi,

I think you are mentioning the log file. I hope it is so and for odoo there we will maintain a log file which will be mentioned in the configuration. If you have created the log file you can open it in the terminal while you are running the odoo instance so at that time you will be able to see the activities which are happening on the database. For getting the log file you can run the following command in the terminal;

sudo tail -f /var/log/odoo/odoo.log

Here the path ‘/var/log/odoo/odoo.log’ means that the path of the log file created. So you can replace it with yours.If you are not created any log files yet you can create a new one like given below; 

Logs are contained in the location /var/log in usual cases therefore, we can also create a directory inside this location named odoo.

sudo mkdir /var/log/odoo

After executing the above we need to set the permissions for this log file, for that we can use the comment below

sudo chown odoo:root /var/log/odoo

After this command you can go to the configuration file and specify the path of the log file that we have created.

logfile = /var/log/odoo/odoo.log

Hope it helps

Avatar
Discard
Best Answer

Hi Boris and others,

Did you already manage to create event logs? Similarly to Boris I am also trying to generate event logs from Odoo. So far I have found that the messages as can be found under the technical settings menu, when developer mode is turned on, are promising. These messages are however not perfect as it can sometimes be difficult to understand what the specific action was. Additionally, using messages, it does not seems possible to export the events without clicking through a very large amount of pages. 

I would be highly interested in hearing from those who previously generated such event logs. Thanks in advance!

Kind regards,
Tom


Avatar
Discard