Udp log graylog

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:

Fixed !

Debian install nginx 1.2.1 , i had to change packtage list and add nginx
main… repo

Posted at Nginx Forum: