expose rsyslog

main
Alpha Chen 1 year ago
parent 99b80cc8d8
commit 5484308a72
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -105,7 +105,7 @@
target_label: 'container' target_label: 'container'
- job_name: syslog - job_name: syslog
syslog: syslog:
listen_address: 0.0.0.0:1514 listen_address: 0.0.0.0:514
listen_protocol: tcp listen_protocol: tcp
idle_timeout: 60s idle_timeout: 60s
label_structured_data: yes label_structured_data: yes
@ -146,7 +146,7 @@
restart: true restart: true
command: -config.file=/mnt/config/promtail.yml command: -config.file=/mnt/config/promtail.yml
ports: ports:
- "1514:1514" - "514:514"
volumes: volumes:
- /var/log:/var/log - /var/log:/var/log
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
@ -163,7 +163,7 @@
*.* action(type="omfwd" *.* action(type="omfwd"
protocol="tcp" protocol="tcp"
target="127.0.0.1" target="127.0.0.1"
port="1514" port="514"
Template="RSYSLOG_SyslogProtocol23Format" Template="RSYSLOG_SyslogProtocol23Format"
TCP_Framing="octet-counted" TCP_Framing="octet-counted"
KeepAlive="on") KeepAlive="on")

Loading…
Cancel
Save