Rabbitmq log level

1,273 views
Skip to first unread message

puneet nagpal

unread,
Oct 11, 2017, 12:07:23 PM10/11/17
to rabbitmq-users
Hi,

Trying to change the rabbitmq logging level from default (info level) to debug by adding


 {log_levels, [{channel, warning}, {connection, warning}, {federation, warning}, {mirroring, warning}]}

in rabbitmq.config file.


But unable there is no change in log level observed even if i set to none (still default logging is coming)
 
One thing i observed while starting Rabbitmq and getting

Using the deprecated config parameter 'rabbit.log_levels' together with a new parameter for log categories. 'rabbit.log_levels' will be ignored. Please remove it from the config.


Can someone explains how to change the log levels of rabbitmq and its pluggin like mqtt to debug



Regards,

Puneet

dfed...@pivotal.io

unread,
Oct 11, 2017, 1:34:42 PM10/11/17
to rabbitmq-users
Hi, 

If you're getting this error, you must be using the "master" branch version of RabbitMQ (3.7.0), which is not released yet.
There are several configuration changes in this version including logging configuration. 
You can find documentation for this changes here 

In your case you should use log categories described in the "Log Message Categories" section instead of log_levels.

puneet nagpal

unread,
Oct 11, 2017, 2:20:46 PM10/11/17
to rabbitmq-users
Thanks for the update. So this in change in logging configuration is w.r.t 3.7.0
I hope the previously mentioned logging configuration should work on 3.6.12 ?

Regards,
Puneet

puneet nagpal

unread,
Oct 11, 2017, 2:59:18 PM10/11/17
to rabbitmq-users
Hi,
As mentioned, i Tried following logging configuration in rabbitmq.config on 3.6.12) 
{log_levels, [{channel, warning}, {connection, warning}, {federation, warning}, {mirroring, warning}]}

in rabbitmq.config file.

But there is NO change in logging level , still INFO logs are coming.


Can you confirm the configuration of logging to be added in configuration file for ver 3.6.12


Regards,

Puneet

dfed...@pivotal.io

unread,
Oct 11, 2017, 4:17:42 PM10/11/17
to rabbitmq-users
Are you sure those log messages are from configured categories? Default messages like "Server startup complete;" are logged in default category, not mentioned in your config.
If you don't want to see these messages, you need to add `{default, warning}` to the list of log levels.

By the way, MQTT connection messages are controlled by the `connection` category.

dfed...@pivotal.io

unread,
Oct 11, 2017, 4:20:37 PM10/11/17
to rabbitmq-users
Some info messages are not controlled by RabbitMQ log levels. For example "started TCP Listener on [::]:5672"

Luke Bakken

unread,
Oct 11, 2017, 4:21:15 PM10/11/17
to rabbitmq-users
Hi Puneet,

Please attach the entire configuration file you are using so I can try to reproduce what you are seeing.

Thanks,
Luke

Michael Klishin

unread,
Oct 16, 2017, 4:22:43 PM10/16/17
to rabbitm...@googlegroups.com
There's also a section on how to verify effective configuration in

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages