Hi, I have followed the guidelines on the following link to get graylog2 to work with nginx: https://www.graylog.org/nginx-content-pack/
To summerise, I have installed the content pack and have added the log_format configuration to my nginx.conf file. My problem is, I need to send other variables over to graylog but when I add them to the log_format, they do not show up when looking at the log entries. For example, I want to add the HTTP_HOST variable so I do the following to the graylog2_format in nginx.conf: log_format graylog2_format '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" <msec=$msec|connection=$connection|connection_requests=$connection_requests|millis=$request_time|host=$host>' ; Note the "host=$host" at the end. I restart nginx, check graylog and nothing, the "host" property is no where to be seen on graylog. Can someone advice me on what to do. Regards -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/254fbc56-3686-4212-897a-824141caa4eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
