Opened 6 years ago
Closed 6 years ago
#1783 closed defect (wontfix)
--http-log-path and --error-log-path don't properly support passing syslog paths
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | other | Version: | |
Keywords: | Cc: | ||
uname -a: | Linux tp.flokli.de 5.1.2 #1-NixOS SMP Tue May 14 17:15:32 UTC 2019 x86_64 GNU/Linux | ||
nginx -V: |
nginx version: nginx/1.16.0
built by gcc 7.4.0 (GCC) built with OpenSSL 1.1.1b 26 Feb 2019 TLS SNI support enabled configure arguments: --prefix=/nix/store/gig902d1skzjadcm9wm59ibha86zpgl8-nginx-1.16.0 --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_geoip_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_stub_status_module --with-threads --with-pcre-jit --http-log-path=syslog:server=unix:/dev/log,tag=nginx,nohostname,severity=info --error-log-path=syslog:server=unix:/dev/log,tag=nginx,nohostname,severity=error --with-stream --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_image_filter_module --with-file-aio --add-module=/nix/store/4w2zbpv9ihl36kbpp6w5d1x33gp5ivfh-source --add-module=/nix/store/n14bjnksgk2phl8n69m4yabmds7f0jj2-source --add-module=/nix/store/jsqrk045m09i136mgcfjfai8i05nq14c-source |
Description
I'd like to build an nginx that defaults to log through syslog.
It seems I can tweak the arguments via --http-log-path and --error-log-path, but apparently, they don't properly support the syslog: prefix.
There seems to be a special "stderr" string comparison at auto/options:605.
Note:
See TracTickets
for help on using tickets.
The
--error-log-path
and--http-log-path
configure options do not accept syslog specifications. This is in line with the documentation:Moreover, logging to syslog cannot be the only way logging is configured. If no logging to a file is configured in the main context, nginx will use the default file configured anyway, see #1176.