How to lookup the IP address at logfile

Asked by Francisco Martinez

Hi all,
(related to OpenERP v7)

The OpenERP server log allways shows the client's IP address for each query. How can configure OpenERP to lookup the IP address of the client to show the hostname instead of the IP? There is some parameter for openerp-server.conf to do that?

Thanks in advance.
Fran

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ronald Portier (Therp) (rportier1962) said :
#1

There is - as far as I know - no parameter to show this.

And IMHO this is just as well:
- having a dns lookup for each client request would be extremely bad for performance
- when OpenERP is used in an internal network, many workstations will have an dynamic IP address
- when having OpenERP open for requests through the internet (for employees working remotely, or having a customer portal), you normally would put the OpenERP server behind a reverse proxy (for instance nginx). Al the IP addresses you would see, would be those of the reverse proxy...

Kind regards,

Ronald

Revision history for this message
Cristian Salamea (ovnicraft) said :
#2

If you want to log it, i guess you are working in LAN, you can extend login method to catch request and process data, web addon can help you.

Regards,

Can you help with this problem?

Provide an answer of your own, or ask Francisco Martinez for more information if necessary.

To post a message you must log in.