udp log graylog

Vetsolution.be nginx-forum at nginx.us
Sun Jan 18 14:38:23 UTC 2015


Hi,

I'm setting up logging from my Nginx server to a Graylog server.

I folow this short guide
https://www.graylog2.org/content-packs/547b5021e4b0a06d87eea01e .
But nothing works...

My iptables are all accept policies, and when I make a udp tcpdump both on
nginx server and graylog  nothing appear...

Ant idea?

This is what i change on http section of /etc/nginx.conf

log_format  graylog2_format  '$remote_addr - $remote_user [$time_local] $

# replace the hostnames with the IP or hostname of your Graylog2 server
access_log syslog:server=192.168.15.225:12301 graylog2_format;
error_log syslog:server=192.168.15.225:12302;
      #  access_log /var/log/nginx/access.log;
#        error_log /var/log/nginx/error.log;

 types {
  text/plain  log;
  }


Regards,

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256177,256177#msg-256177



More information about the nginx mailing list