Relay to a syslog endpoint using rsyslog.
Bind a log output to /logs. For example,
docker run -v /my/log/ouput.log:/logs dpyro/syslog-relaydocker run -v log_volume:/logs dpyro/syslog-relayNote that a _work directory will be created in the volume by rsyslog to keep track of log position.
| Port | Name |
|---|---|
| 514 | UDP |
| 514 | TCP |
| 6514 | RELP |
Specify the relay endpoint with the first argument. Using @localhost:514 will probably cause an infinite loop.
$RELAY_TARGETsyslog string- stdout/stderr echoing relayed messages
docker run -v source:/logs dpyro/syslog-relay @nowhereWhere source is a folder or a volume containing top-level log files.
docker run -p 514:514/udp dpyro/syslog-relay @nowhere:8675docker run -p 514:514/tcp dpyro/syslog-relay @@nowhereNote the two @@.
docker run -p 514:514/tcp dpyro/rsyslog-relay '@@(o)nowhere:6514;RSYSLOG_SyslogProtocol23Format'