MailerQ
Installation guide Features Pricing Documentation Blog Jobs Login
Back to overview

Controlling RabbitMQ log levels

Published on May 24, 2013 | By MailerQ

RabbitMQ is a solid and and fast message queue, at Copernica we use it for queueing all kinds of messages throughout the application. Fast and flexible as it may be, it does come with a few quirks we've had to overcome. Over recent months, we've been moving more parts of our software to RabbitMQ, thereby increasing the load we place on RabbitMQ servers. In doing so, RabbitMQ started eating up far more diskspace than any sysadmin would be comfortable with (figures in excess of 20Gb overnight were no exception). Some research revealed that RabbitMQ would log every single connection attempt. When using persistent connections, this would, of course, not be a big problem. However, when you mostly employ short running PHP scripts that send tens of thousands of messages to RabbitMQ, you will find yourself wasting a lot of diskspace on what is essentially useless information.

Luckily RabbitMQ has recently introduced some level of control over logging. Info level logs can be disabled by adding the following line to your /etc/rabbitmq/rabbitmq.config:
[
{rabbit, [ {log_levels, [{connection, error}]} ] }
].

The above tells RabbitMQ to only log connection events if they are errors. As 'connection' is currently the only defined category, events in any other category will always be logged. In the future, more categories will be defined for even finer grained control over logging.

Stay up to date

RSS Atom LinkedIn Twitter

Latest News & updates

Technical deep-dive: Dynamic queue size optimization

In this series, we ask our developers to provide insights into features and optimizations that are not very visible on the surface, but h...

Setting up External MTA IPs with HTTP proxy (using tinyproxy)

The External MTA IPs feature lets MailerQ use IP addresses available on a remote host for sending emails, as if they are available on the...

Read more news

Stay up to date

About MailerQ

Features

Why MailerQ

User Guide

MailerQ partners

Privacy Policy

User agreement

Terms of Service

Jobs

Try MailerQ for free

Contact MailerQ

De Ruijterkade 112
1011 AB Amsterdam
+31 (0)20 520 61 90
info@mailerq.com

Proud member of:

M3AAWG CSA
© 2021 MailerQ