Skip to main content
added 133 characters in body
Source Link
Andrii Rusanov
  • 4.6k
  • 2
  • 41
  • 55

I need to put Nginx logs to syslog. My Nginx version in 1.6, system - Ubuntu 12.04. In Nginx config I do:

server { # some settings here access_log syslog:localhost; # and some settings here } 

Make a request with curl:

curl http://localhost/ 

Get standard Nginx page, but syslog is still empty...

UPD: Problem was fixed after uncommenting in rsyslog.conf following lines:

#$ModLoad imudp #$UDPServerRun 514 

I need to put Nginx logs to syslog. My Nginx version in 1.6, system - Ubuntu 12.04. In Nginx config I do:

server { # some settings here access_log syslog:localhost; # and some settings here } 

Make a request with curl:

curl http://localhost/ 

Get standard Nginx page, but syslog is still empty...

I need to put Nginx logs to syslog. My Nginx version in 1.6, system - Ubuntu 12.04. In Nginx config I do:

server { # some settings here access_log syslog:localhost; # and some settings here } 

Make a request with curl:

curl http://localhost/ 

Get standard Nginx page, but syslog is still empty...

UPD: Problem was fixed after uncommenting in rsyslog.conf following lines:

#$ModLoad imudp #$UDPServerRun 514 
Source Link
Andrii Rusanov
  • 4.6k
  • 2
  • 41
  • 55

Nginx: logging to syslog

I need to put Nginx logs to syslog. My Nginx version in 1.6, system - Ubuntu 12.04. In Nginx config I do:

server { # some settings here access_log syslog:localhost; # and some settings here } 

Make a request with curl:

curl http://localhost/ 

Get standard Nginx page, but syslog is still empty...