Nginx sends syslog messages with the name of the server - I would like the ip

Mik J mikydevel at yahoo.fr
Sun Dec 11 00:02:00 UTC 2022


Hello,

My Nginx server sends syslogs to my remote syslog server with a host = myserver.mydomain.org
However I would like that the host to be the IP a specific IP of the server (which exists)

On my Nginx server
server {
...
access_log syslog:server=1.2.3.4;
error_log syslog:server=1.2.3.4;

Is it possible that the syslog hostname in the message is set to 4.5.6.7 (the IP address of the Nginx server) ?

Regards



More information about the nginx mailing list