Skip to content

Commit

Permalink
docs(conf): syslog conf
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong <huangjy@emqx.io>
  • Loading branch information
ngjaying committed Oct 7, 2023
1 parent 7cd578e commit 70e1cc1
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 3 deletions.
35 changes: 33 additions & 2 deletions docs/en_US/configuration/global_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ basic:
consoleLog: false
# true|false, if it's set to true, then the log will be print to log file
fileLog: true
# syslog settings
syslog:
# true|false, if it's set to true, then the log will be print to syslog
enable: false
# The syslog protocol, tcp or udp; Leave empty if no remote syslog server is used
network: udp
# The syslog server address; Leave empty if no remote syslog server is used
address: localhost:514
# The syslog level, supports debug, info, warn, error
level: info
# The syslog tag; Leave empty if no tag is used
tag: kuiper
# How many hours to split the file
rotateTime: 24
# Maximum file storage hours
Expand Down Expand Up @@ -50,9 +62,28 @@ basic:
maxAge: 72
```

## system log
## System log

When the user sets the value of the environment variable named KuiperSyslogKey to true, the log will be printed to the syslog.
When the user sets the value of the environment variable named KuiperSyslogKey to true or set syslog enable to true, the
log will be printed to the syslog. Additional syslog settings are as follows:

```yaml
# syslog settings
syslog:
# true|false, if it's set to true, then the log will be print to syslog
enable: false
# The syslog protocol, tcp or udp; Leave empty if no remote syslog server is used
network: udp
# The syslog server address; Leave empty if no remote syslog server is used
address: localhost:514
# The syslog level, supports debug, info, warn, error
level: info
# The syslog tag; Leave empty if no tag is used
tag: kuiper
```

All the above settings are optional. If the network and address are not set, the local syslog will be used. If the level
is not set, the default value is info. If the tag is not set, there will be no tag used.

## Timezone

Expand Down
32 changes: 31 additions & 1 deletion docs/zh_CN/configuration/global_configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ basic:
consoleLog: false
# true|false, if it's set to true, then the log will be print to log file
fileLog: true
# syslog settings
syslog:
# true|false, if it's set to true, then the log will be print to syslog
enable: false
# The syslog protocol, tcp or udp; Leave empty if no remote syslog server is used
network: udp
# The syslog server address; Leave empty if no remote syslog server is used
address: localhost:514
# The syslog level, supports debug, info, warn, error
level: info
# The syslog tag; Leave empty if no tag is used
tag: kuiper
# How many hours to split the file
rotateTime: 24
# Maximum file storage hours
Expand Down Expand Up @@ -50,7 +62,25 @@ basic:

## 系统日志

用户将名为 KuiperSyslogKey 的环境变量的值设置为 true 时,日志将打印到系统日志中。
用户将名为 KuiperSyslogKey 的环境变量的值设置为 true 或者 syslog enable 配置为 true 时,日志将打印到系统日志中。更多
syslog 配置选项如下所示:

```yaml
# syslog settings
syslog:
# true|false, if it's set to true, then the log will be print to syslog
enable: false
# The syslog protocol, tcp or udp; Leave empty if no remote syslog server is used
network: udp
# The syslog server address; Leave empty if no remote syslog server is used
address: localhost:514
# The syslog level, supports debug, info, warn, error
level: info
# The syslog tag; Leave empty if no tag is used
tag: kuiper
```

以上选项均为可选。若未设置网络和地址,则使用本地 syslog。若未设置级别,则默认值为 info。若未设置标签,则不使用标签。

## 时区配置

Expand Down

0 comments on commit 70e1cc1

Please sign in to comment.