comparison xml/en/docs/syslog.xml @ 1589:be92e50c52ac

Documented the "nohostname" syslog option.
author Vladimir Homutov <vl@nginx.com>
date Thu, 29 Oct 2015 16:19:42 +0300
parents 39744b9aba1b
children 54fa47139017
comparison
equal deleted inserted replaced
1588:d8d0f0eb1129 1589:be92e50c52ac
7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> 7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd">
8 8
9 <article name="Logging to syslog" 9 <article name="Logging to syslog"
10 link="/en/docs/syslog.html" 10 link="/en/docs/syslog.html"
11 lang="en" 11 lang="en"
12 rev="3"> 12 rev="4">
13 13
14 <section> 14 <section>
15 15
16 <para> 16 <para>
17 The 17 The
68 <tag-desc> 68 <tag-desc>
69 Sets the tag of syslog messages. 69 Sets the tag of syslog messages.
70 Default is “<literal>nginx</literal>”. 70 Default is “<literal>nginx</literal>”.
71 </tag-desc> 71 </tag-desc>
72 72
73 <tag-name><literal>nohostname</literal></tag-name>
74 <tag-desc>
75 Disables adding the “hostname” field into the syslog message header (1.9.7).
76 </tag-desc>
77
73 <!-- 78 <!--
74 <tag-name><literal>bare=</literal><literal>on</literal> | 79 <tag-name><literal>bare=</literal><literal>on</literal> |
75 <literal>off</literal></tag-name> 80 <literal>off</literal></tag-name>
76 <tag-desc> 81 <tag-desc>
77 If enabled, messages are sent without syslog headers. 82 If enabled, messages are sent without syslog headers.
82 </list> 87 </list>
83 Example syslog configuration: 88 Example syslog configuration:
84 <example> 89 <example>
85 error_log syslog:server=192.168.1.1 debug; 90 error_log syslog:server=192.168.1.1 debug;
86 91
87 access_log syslog:server=unix:/var/log/nginx.sock; 92 access_log syslog:server=unix:/var/log/nginx.sock,nohostname;
88 access_log syslog:server=[2001:db8::1]:12345,facility=local7,tag=nginx,severity=info combined; 93 access_log syslog:server=[2001:db8::1]:12345,facility=local7,tag=nginx,severity=info combined;
89 </example> 94 </example>
90 </para> 95 </para>
91 96
92 <para> 97 <para>