mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
11 lines
394 B
Plaintext
11 lines
394 B
Plaintext
|
# Rsyslog configuration file for docker.
|
||
|
|
||
|
template(name="DynaFile" type="string" string="/var/log/docker/%programname%.log")
|
||
|
|
||
|
if $programname != "rsyslogd" then {
|
||
|
{%if log_external %}
|
||
|
action(type="omfwd" Target="{{log_ep_host}}" Port="{{log_ep_port}}" Protocol="{{log_ep_protocol}}" Template="RSYSLOG_SyslogProtocol23Format")
|
||
|
{% else %}
|
||
|
action(type="omfile" dynaFile="DynaFile")
|
||
|
{% endif %}
|
||
|
}
|