Closed jaredledvina closed 6 years ago
Lager does not support syslog out of the box and we don't have the consensus about shipping Lager plugins with RabbitMQ.
FTR, the exception says "module lager_syslog_backend is undefined" (undef
).
Hey @michaelklishin,
Thanks so much for the quick reply! Would it be worth me PR'ing an update to https://github.com/rabbitmq/rabbitmq-website/blob/live/site/logging.md#logging-to-syslog to explicitly mark that configuration as not supported for 3.7?
Yes, we’d definitely appreciate a doc update. Thank you!
Perhaps putting together an example of Lager + Syslog for 3.7.x would be useful, it definitely can be a small community plugin even if we decide to not include the [Lager] plugin into RabbitMQ core or distribution.
I’m not a Lager expert, so you’ll have to bribe @lukebakken or @hairyhum :)
Should we not re-open this until we fixup the changelog and documentation about this? I don't think its a good stance to break working systems, not call our the changes, and close the issue before steps are taken to warn users.
@majormoses syslog was never supported out of the box. We didn't break anything.
I edited out all Syslog mentions in the logging guide (which was introduced together with 3.7)
If someone wants to discuss a RabbitMQ plugin that would allow logging to syslog, you are welcome to do it on the mailing list.
Thanks for the clarification and quick turn around to updating the documentation.
System Info:
rabbitmq-plugins list
/etc/rabbitmq/rabbitmq.config
:Problem:
Hi! I'm trying to configure RabbitMQ to log natively to syslog, reading through https://www.rabbitmq.com/logging.html it seems like this should be simple and only require me adding the
{log, [{syslog, [{enabled, true}]}]},
section to the config. However, after doing so, and restartingrabbitmq-server
I get the following in the RabbitMQ logs:I also tested out enabling the
console
logging with the config:{log, [{console, [{enabled, true}]}]},
and those are viewable without issue viajournalctl -o cat -fu rabbitmq-server.service
. My current understanding is that this is specifically an issue only with thelager_syslog_backend
.Happy to provide any other information, this is a very basic RabbitMQ server setup, with a single user, single vhost, in a 3 node cluster.