RabbitMQ Syslog Configuration Error

534 views
Skip to first unread message

Sefa Teber

unread,
Nov 14, 2023, 8:43:31 AM11/14/23
to rabbitmq-users
Hi,

I wanted to send rabbitmq logs to syslog server, but rabbitmq sends no log to the syslog server. I edited rabbitmq.conf file as:

log.console = true
log.console.level = debug

log.syslog = true
log.syslog.level = debug
log.syslog.transport = udp
log.syslog.protocol = rfc5424
log.syslog.host = 127.0.0.1
log.syslog.port = 514
log.syslog.identity = rabbitmq
log.syslog.facility = local0


But it is not working at all. I also checked with Wireshark but there is no syslog packet that comes from Rabbitmq server. My Rabbitmq version is 3.9.13. Following discussion (  https://groups.google.com/g/rabbitmq-users/c/a_Jt9DkPVD8/m/AU-JhpHUBAAJ?utm_medium=email&utm_source=footer ) says:

So yes, perhaps you should try 3.8.10+

But i'm facing same error with upper version. What can be the problem? Which logs i can check for?

Thanks


Sefa Teber

unread,
Nov 14, 2023, 8:56:24 AM11/14/23
to rabbitmq-users
In addition, 

I'm using it in Docker container and actually there is a different host name instead of "127.0.0.1", it is just for example. 

rabbitmq:3.9.13-management

14 Kasım 2023 Salı tarihinde saat 16:43:31 UTC+3 itibarıyla Sefa Teber şunları yazdı:

Michal Kuratczyk

unread,
Nov 14, 2023, 9:36:04 AM11/14/23
to rabbitm...@googlegroups.com
I started RabbitMQ with your configuration and I can see logs sent as expected (I just ran `nc -u -l 514` to listen on the port and receive them).
Therefore, I'd say there's nothing wrong with the configuration. Probably just a connectivity issue, so the logs don't get to the log server.

Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/836a560d-ae76-4254-a408-e244b4056834n%40googlegroups.com.


--
Michał
RabbitMQ team

Sefa Teber

unread,
Nov 15, 2023, 1:19:35 AM11/15/23
to rabbitmq-users
Hi Michal,

RabbitMQ can reach host machine with domain name. Not like a connectivity issue. But i found following log in the RabbitMQ server's logs:

Application syslog exited with reason: stopped

I tried 3.12.8-management version, and it works fine.

Thanks for help.

14 Kasım 2023 Salı tarihinde saat 17:36:04 UTC+3 itibarıyla Michal Kuratczyk şunları yazdı:
Reply all
Reply to author
Forward
0 new messages