-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Swarm: No Data on Telegraf Syslog Input #4660
Comments
Additonal Info 1: The dummy TLS config by @glinton keeps the chronograf service from starting alltogether:
|
Progress: I have setup rsyslog on the manager:
I have changed to telegraf config to bind on all interfaces and added an additional output: [[inputs.syslog]]
server = "tcp://0.0.0.0:6514"
name_suffix = "_sysl"
# ...
[[outputs.influxdb]]
database = "syslog"
urls = ["http://influxdb:8086"]
namepass = ["*_sysl"] I have changed my logging extension to: x-influxlog: &influxlog
logging:
driver: syslog
options:
syslog-address: "udp://localhost:514"
syslog-format: rfc5424micro
tag: "{{.ImageName}}" Now, in the data explorer, I can see the syslog table and query it manually: SELECT "message", "severity_code" FROM "syslog"."autogen"."syslog_sysl" WHERE time > now() - 1h Remaining problems:
|
Progress 2: I've changed the Telegraf config as follows: [[inputs.syslog]]
server = "tcp://0.0.0.0:6514"
# ...
[[outputs.influxdb]]
database = "sys"
urls = ["http://influxdb:8086"]
namepass = ["syslog"] Now logs appear in log viewer. However, only dockerd and other system logs, no entries related to the docker container chronograf, which is supposed to log. |
Update yet again. The Rsyslog config was bogus (taken from the Influx blog). The new syntax configures the UDP module directly. Only the last line for the proxy is needed. Configure Rsyslog Uncomment and modify:
Append:
Configure Telegraf [[inputs.syslog]]
server = "tcp://0.0.0.0:6514"
# ...
[[outputs.influxdb]]
database = "sys"
urls = ["http://influxdb:8086"]
namepass = ["syslog"] Configure Your Stack x-influxlog: &influxlog
logging:
driver: syslog
options:
syslog-address: "udp://localhost:514"
tag: "{{.ImageName}}" (i.e. don't set the msg format!) Enjoy |
As you appended two @@ and are using server = "tcp://0.0.0.0:6514", you are using tcp for logging and not udp!? |
Relevant telegraf.conf:
System info:
Here is the complete stack:
Steps to reproduce:
Expected behavior:
Actual behavior:
Additional info:
Docker doesn't complain about the server being impossible to contact, because the protocol is set to UDP. Previous discussion at #4482. Solutions suggested by @glinton and @danielnelson both don't work.
The text was updated successfully, but these errors were encountered: