<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hallo!</div><div><br></div><div>Using rsyslog I have set up a logging socket and confirmed that its working by piping in some stuff to "logger -u /dev/log"</div><div>nginx/1.8.0 does not seem to be dumping in logs however. The nginx config is below..</div><div><p>I'm probably doing something dumb. This is the first time I set this up.</p><p>Cheers,</p><p>Andrew</p><p># For more information on configuration, see:</p><p># * Official English Documentation: <a href="http://nginx.org/en/docs/" target="_blank">http://nginx.org/en/docs/</a></p><p># * Official Russian Documentation: <a href="http://nginx.org/ru/docs/" target="_blank">http://nginx.org/ru/docs/</a></p><p><br></p><p>user nginx;</p><p>worker_processes 4;</p><p>#error_log /var/log/nginx/error.log debug;</p><p>error_log syslog:server=unix:/dev/log debug;</p><p>pid /run/nginx.pid;</p><p><br></p><p>events {</p><p> worker_connections 1024;</p><p>}</p><p><br></p><p>http {</p><p><br></p><p># Log to Rsyslog socket</p><p><br></p><p>log_format syslog '$remote_addr $host:$server_port "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';</p><p>access_log syslog:server=unix:/dev/log syslog;</p><p><br></p><p># log_format main '$remote_addr - $remote_user [$time_local] "$request" '</p><p># '$status $body_bytes_sent "$http_referer" '</p><p># '"$http_user_agent" "$http_x_forwarded_for"';</p><p>#</p><p># access_log /var/log/nginx/access.log main;</p><p><br></p><p> sendfile on;</p><p> tcp_nopush on;</p><p> tcp_nodelay on;</p><p> keepalive_timeout 65;</p><p> types_hash_max_size 2048;</p><p><br></p><p> include /etc/nginx/mime.types;</p><p> default_type application/octet-stream;</p><p><br></p><p> # Load modular configuration files from the /etc/nginx/conf.d directory.</p><p> # See <a href="http://nginx.org/en/docs/ngx_core_module.html#include" target="_blank">http://nginx.org/en/docs/ngx_core_module.html#include</a></p><p> # for more information.</p><p> include /etc/nginx/conf.d/*.conf;</p><p><br></p><p>
</p><p>}</p></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div><br></div><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Otter Networks UG<br><a href="http://otternetworks.de" target="_blank">http://otternetworks.de</a><br>fon: <a href="tel:%2B49%2030%2054%2088%205197" value="+493054885197" target="_blank">+49 30 54 88 5197</a><br>Gotenstraße 17<br>10829 Berlin</div></div>
</font></span></div>
</div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Otter Networks UG<br><a href="http://otternetworks.de" target="_blank">http://otternetworks.de</a><br>fon: +49 30 54 88 5197<br>Gotenstraße 17<br>10829 Berlin</div></div>
</div>