Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

udp log graylog (1 reply)

$
0
0
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,

Viewing all articles
Browse latest Browse all 7229

Trending Articles