[Pacemaker] [PATCH 0/2] rsyslog/logrotate configuration snippets

Florian Haas florian at hastexo.com
Thu Jan 5 21:15:40 UTC 2012


Hi everyone,

apologies for sending patches to the user list -- my subscription
request is still pending on pcmk-devel, so here goes.

One of the most commonly voiced criticisms against Pacemaker is that
it floods people's logs. And while I contend that the rather verbose
logging that Pacemaker offers is a good thing, and that it shouldn't
necessarily have to tune down the amount of messages it emits, we
should offer users a facility where these log messages don't interfere
with more critical logging info.

So the patches contain a simple rsyslog configuration snippet which,
when included in the rsyslog configuration, will log Pacemaker logging
output to files named /var/log/pacemaker/<daemon>.log, where <daemon>
can be attrd, cib, crmd, lrmd, pengine, and stonith. (Output from the
crm_attribute binary also goes to the "attrd" log.)

So what remains in the default system log (/var/log/messages,
/var/log/syslog)? The stuff that you're most likely to care about,
namely the log messages from the resource agents -- i.e. stuff that's
actually relevant to the health of your application, rather than the
health of your cluster infrastructure. I find this makes issues _much_
easier to troubleshoot (but then of course, that may be my personal
preference).

What's also included is a simple logrotate configuration snippet that
makes sure these log files are compressed and rotated once a week.

These changes, since commit d35d6f96daa04d9a2c3c54a0c60a3ff5db5fc293:

  High: Core: Rempove stray character from qb_ipc_response_header definition (2012-01-03 11:38:46 +1100)

are also available in my git repository at:
  git://github.com/fghaas/pacemaker syslog

Florian Haas (2):
      extra: add rsyslog configuration snippet
      extra: add logrotate configuration snippet

 configure.ac                      |    4 +++
 extra/Makefile.am                 |    2 +-
 extra/logrotate/Makefile.am       |    5 ++++
 extra/logrotate/pacemaker.conf.in |    7 ++++++
 extra/rsyslog/Makefile.am         |    5 ++++
 extra/rsyslog/pacemaker.conf.in   |   39 +++++++++++++++++++++++++++++++++++++
 6 files changed, 61 insertions(+), 1 deletions(-)
 create mode 100644 extra/logrotate/Makefile.am
 create mode 100644 extra/logrotate/pacemaker.conf.in
 create mode 100644 extra/rsyslog/Makefile.am
 create mode 100644 extra/rsyslog/pacemaker.conf.in

Hope this is useful.

Cheers,
Florian




More information about the Pacemaker mailing list