Mercurial > hg > nginx-site
annotate xml/ru/docs/syslog.xml @ 2652:eb508d8c1c31
Linux packages: added RHEL/CentOS 7 aarch64/arm64.
author | Konstantin Pavlov <thresh@nginx.com> |
---|---|
date | Wed, 10 Feb 2021 14:36:24 +0300 |
parents | 66a30a380fba |
children | 4add6ae1296f |
rev | line source |
---|---|
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 <!-- |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 Copyright (C) Nginx, Inc. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 --> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 <article name="Запись в syslog" |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 link="/ru/docs/syslog.html" |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 lang="ru" |
1923
66a30a380fba
Fixed links to tools.ietf.org.
Ruslan Ermilov <ru@nginx.com>
parents:
1621
diff
changeset
|
12 rev="6"> |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 <section> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 <para> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 Директивы |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 <link doc="ngx_core_module.xml" id="error_log"/> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 и |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 <link doc="http/ngx_http_log_module.xml" id="access_log"/> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 поддерживают запись в syslog. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 Запись в syslog настраивается при помощи следующих параметров: |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 <list type="tag"> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 <tag-name><literal>server=</literal><value>адрес</value></tag-name> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 <tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 Задаёт адрес сервера syslog. |
1621
54fa47139017
Made the syslog:server= description more like in upstream server.
Ruslan Ermilov <ru@nginx.com>
parents:
1589
diff
changeset
|
28 Адрес может быть указан в виде доменного имени или IP-адреса, |
54fa47139017
Made the syslog:server= description more like in upstream server.
Ruslan Ermilov <ru@nginx.com>
parents:
1589
diff
changeset
|
29 и необязательного порта, или в виде пути UNIX-сокета, который |
54fa47139017
Made the syslog:server= description more like in upstream server.
Ruslan Ermilov <ru@nginx.com>
parents:
1589
diff
changeset
|
30 указывается после префикса “<literal>unix:</literal>”. |
54fa47139017
Made the syslog:server= description more like in upstream server.
Ruslan Ermilov <ru@nginx.com>
parents:
1589
diff
changeset
|
31 Если порт не указан, используется UDP-порт 514. |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 Если доменному имени соответствует несколько IP-адресов, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 используется только первый адрес. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 </tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 <tag-name><literal>facility=</literal><value>строка</value></tag-name> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 <tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 Задаёт категорию сообщений syslog в соответствии с |
1923
66a30a380fba
Fixed links to tools.ietf.org.
Ruslan Ermilov <ru@nginx.com>
parents:
1621
diff
changeset
|
39 <link url="https://tools.ietf.org/html/rfc3164#section-4.1.1">RFC 3164</link>. |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 В качестве категории может быть указано одно из следующих значений: |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 “<literal>kern</literal>”, “<literal>user</literal>”, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 “<literal>mail</literal>”, “<literal>daemon</literal>”, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
43 “<literal>auth</literal>”, “<literal>intern</literal>”, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
44 “<literal>lpr</literal>”, “<literal>news</literal>”, “<literal>uucp</literal>”, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 “<literal>clock</literal>”, “<literal>authpriv</literal>”, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 “<literal>ftp</literal>”, “<literal>ntp</literal>”, “<literal>audit</literal>”, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
47 “<literal>alert</literal>”, “<literal>cron</literal>”, |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
48 “<literal>local0</literal>”..“<literal>local7</literal>”. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 По умолчанию используется “<literal>local7</literal>”. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
50 </tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 <tag-name><literal>severity=</literal><value>строка</value></tag-name> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 <tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 Задаёт важность сообщений syslog для |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 <link doc="http/ngx_http_log_module.xml" id="access_log"/> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 в соответствии с |
1923
66a30a380fba
Fixed links to tools.ietf.org.
Ruslan Ermilov <ru@nginx.com>
parents:
1621
diff
changeset
|
57 <link url="https://tools.ietf.org/html/rfc3164#section-4.1.1">RFC 3164</link>. |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
58 Возможны те же самые значения, что и у второго параметра (уровень) |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
59 директивы <link doc="ngx_core_module.xml" id="error_log"/>. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
60 По умолчанию используется “<literal>info</literal>”. |
1574 | 61 <note> |
62 Важность сообщений об ошибках определяется самим nginx, поэтому | |
1572
8df0327a1c87
The "severity" syslog parameter is not supported in "error_log".
Vladimir Homutov <vl@nginx.com>
parents:
1466
diff
changeset
|
63 в директиве <literal>error_log</literal> параметр игнорируется. |
8df0327a1c87
The "severity" syslog parameter is not supported in "error_log".
Vladimir Homutov <vl@nginx.com>
parents:
1466
diff
changeset
|
64 </note> |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 </tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
66 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 <tag-name><literal>tag=</literal><value>строка</value></tag-name> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 <tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
69 Задаёт метку сообщений syslog. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
70 По умолчанию используется “<literal>nginx</literal>”. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 </tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 |
1589
be92e50c52ac
Documented the "nohostname" syslog option.
Vladimir Homutov <vl@nginx.com>
parents:
1574
diff
changeset
|
73 <tag-name><literal>nohostname</literal></tag-name> |
be92e50c52ac
Documented the "nohostname" syslog option.
Vladimir Homutov <vl@nginx.com>
parents:
1574
diff
changeset
|
74 <tag-desc> |
be92e50c52ac
Documented the "nohostname" syslog option.
Vladimir Homutov <vl@nginx.com>
parents:
1574
diff
changeset
|
75 Запрещает добавление поля “hostname” в заголовок сообщения syslog (1.9.7). |
be92e50c52ac
Documented the "nohostname" syslog option.
Vladimir Homutov <vl@nginx.com>
parents:
1574
diff
changeset
|
76 </tag-desc> |
be92e50c52ac
Documented the "nohostname" syslog option.
Vladimir Homutov <vl@nginx.com>
parents:
1574
diff
changeset
|
77 |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
78 <!-- |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
79 <tag-name><literal>bare=</literal><literal>on</literal> | |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
80 <literal>off</literal></tag-name> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
81 <tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
82 Если включено, сообщения отправляются без заголовка syslog. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
83 По умолчанию выключено. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
84 </tag-desc> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
85 --> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
86 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
87 </list> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
88 Пример конфигурации syslog: |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
89 <example> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
90 error_log syslog:server=192.168.1.1 debug; |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
91 |
1589
be92e50c52ac
Documented the "nohostname" syslog option.
Vladimir Homutov <vl@nginx.com>
parents:
1574
diff
changeset
|
92 access_log syslog:server=unix:/var/log/nginx.sock,nohostname; |
1285
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
93 access_log syslog:server=[2001:db8::1]:12345,facility=local7,tag=nginx,severity=info combined; |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
94 </example> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
95 </para> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
96 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
97 <para> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
98 <note> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 Запись в syslog доступна начиная с версии 1.7.1. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
100 Как часть |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
101 <commercial_version>коммерческой подписки</commercial_version> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
102 запись в syslog доступна начиная с версии 1.5.3. |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
103 </note> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
104 </para> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
105 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
106 </section> |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 |
4e89518a5999
Moved syslog configuration details into the separate documents.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
108 </article> |