You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried sending syslog logs to OpenTelemetry Collector and Telegraf. Both can't parse the log entries from nats-server.
They expect a missing version value in the log entry. I had to figure out which version of syslog nats-server is using.
It would be nice if it is mentioned in the documents. I created a Pull Request for it: nats-io/nats.docs#632
Telegraf with Syslog input configured like:
[[inputs.syslog]]
server = "tcp://:6514"framing = "non-transparent"syslog_standard = "RFC5424"
Nats server command: nats-server -js -r tcp://127.0.0.1:6514
Telegraf prints for each received message:
2023-11-14T08:44:15Z E! [inputs.syslog] Error in plugin: expecting a version value in the range 1-999 [col 6]
The same happens with OpenTelemetry Collector configured like:
Observed behavior
Hello,
I tried sending syslog logs to OpenTelemetry Collector and Telegraf. Both can't parse the log entries from nats-server.
They expect a missing version value in the log entry. I had to figure out which version of syslog nats-server is using.
It would be nice if it is mentioned in the documents. I created a Pull Request for it: nats-io/nats.docs#632
Telegraf with Syslog input configured like:
Nats server command:
nats-server -js -r tcp://127.0.0.1:6514
Telegraf prints for each received message:
The same happens with OpenTelemetry Collector configured like:
Message received over TCP:
After
<5>
there is supposed to be a 1 for the version, see https://www.rfc-editor.org/rfc/rfc5424#section-6.2.2Expected behavior
Nats-server sends syslog messages to Telegraf or OpenTelemetry Collector and both can interpret them according to the specification.
Send message should look like this:
Server and client version
nats-server --version
nats-server: v2.10.5
nats --version
0.1.1
telegraf --version
Telegraf 1.28.3 (git: HEAD@a72550a0)
otelcol --version
otelcol-contrib version 0.88.0
Host environment
Darwin Kernel Version 23.1.0
darwin/arm64
No container runtime
Steps to reproduce
To see the message start netcat and a nats-server send syslog message to it:
Or start an OpenTelemetry Contrib Collector with config:
The text was updated successfully, but these errors were encountered: