Added section to check rsyslog listens on port 514 udp
Dieser Commit ist enthalten in:
Ursprung
46bb930a89
Commit
9cbc5deed3
2 geänderte Dateien mit 35 neuen und 14 gelöschten Zeilen
|
@ -68,16 +68,27 @@ services:
|
||||||
options:
|
options:
|
||||||
syslog-address: "udp://127.0.0.1:514"
|
syslog-address: "udp://127.0.0.1:514"
|
||||||
syslog-facility: "local3"
|
syslog-facility: "local3"
|
||||||
|
```
|
||||||
|
|
||||||
# Nur fĂĽr Rsyslog:
|
##### Nur fĂĽr rsyslog:
|
||||||
# Um die local3-Eingabe nach /var/log/mailcow.log zu verschieben und die Verarbeitung zu beenden, erstellen Sie eine Datei "/etc/rsyslog.d/docker.conf":
|
|
||||||
|
Stellen Sie sicher, dass folgende Zeilen in `/etc/rsyslog.conf` nicht auskommentiert sind:
|
||||||
local3.* /var/log/mailcow.logs
|
|
||||||
& stop
|
|
||||||
|
|
||||||
# Danach rsyslog neu starten.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# provides UDP syslog reception
|
||||||
|
module(load="imudp")
|
||||||
|
input(type="imudp" port="514")
|
||||||
|
```
|
||||||
|
|
||||||
|
Um Eingänge von `local3` in `/var/log/mailcow.log` zu leiten und danach die Verarbeitung zu stoppen,
|
||||||
|
erstellen Sie die Datei `/etc/rsyslog.d/docker.conf`:
|
||||||
|
|
||||||
|
```
|
||||||
|
local3.* /var/log/mailcow.log
|
||||||
|
& stop
|
||||||
|
```
|
||||||
|
|
||||||
|
Starten Sie rsyslog danach neu.
|
||||||
|
|
||||||
#### Ăśber daemon.json (global)
|
#### Ăśber daemon.json (global)
|
||||||
|
|
||||||
|
|
|
@ -68,16 +68,26 @@ services:
|
||||||
options:
|
options:
|
||||||
syslog-address: "udp://127.0.0.1:514"
|
syslog-address: "udp://127.0.0.1:514"
|
||||||
syslog-facility: "local3"
|
syslog-facility: "local3"
|
||||||
|
```
|
||||||
|
|
||||||
# For Rsyslog only:
|
##### For Rsyslog only:
|
||||||
# To move local3 input to /var/log/mailcow.log and stop processing, create a file "/etc/rsyslog.d/docker.conf":
|
|
||||||
|
Make sure the following lines aren't commented out in `/etc/rsyslog.conf`:
|
||||||
local3.* /var/log/mailcow.logs
|
|
||||||
& stop
|
|
||||||
|
|
||||||
# Restart rsyslog afterwards.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
# provides UDP syslog reception
|
||||||
|
module(load="imudp")
|
||||||
|
input(type="imudp" port="514")
|
||||||
|
```
|
||||||
|
|
||||||
|
To move `local3` input to `/var/log/mailcow.log` and stop processing, create a file `/etc/rsyslog.d/docker.conf`:
|
||||||
|
|
||||||
|
```
|
||||||
|
local3.* /var/log/mailcow.log
|
||||||
|
& stop
|
||||||
|
```
|
||||||
|
|
||||||
|
Restart rsyslog afterwards.
|
||||||
|
|
||||||
#### via daemon.json (globally)
|
#### via daemon.json (globally)
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren