libvirt/src/logging
Daniel P. Berrangé 975b004d07 logging: ensure virtlogd rollover takes priority over logrotate
The virtlogd config is set to rollover logs every 2 MB.

Normally a logrotate config file is also installed to handle cases where
virtlogd is disabled. This is set to rollover weekly with no size
constraint.

As a result logrotate can interfere with virtlogd's, rolling over files
that virtlogd has already taken care of.

This changes logrotate configs to rollover based on a max size
constraint of 2 MB + 1 byte. When virtlogd is running the log files will
never get this large, making logrotate a no-op.

If the user changes the size in virtlogd's config to something larger,
they are responsible for also changing the logrotate config suitably.

The LXC/libxl drivers don't use virtlogd, but there logrotate config is
altered to match the QEMU driver config, for the sake of consistency.

Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-07-12 12:44:59 +01:00
..
log_daemon_config.c Revert "Include unistd.h directly by files using it" 2019-04-10 12:26:32 +02:00
log_daemon_config.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_daemon_dispatch.c Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
log_daemon_dispatch.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_daemon.c remote: delete the avahi mDNS support 2019-06-21 12:59:42 +01:00
log_daemon.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_handler.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
log_handler.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_manager.c Fix names for abs_top_{src,build}dir variables 2019-03-14 10:05:28 +01:00
log_manager.h src/logging: use #pragma once in headers 2019-06-13 17:05:10 +02:00
log_protocol.x log: daemon: Add remote protocol handling for the log appending API 2016-06-07 18:10:29 +02:00
Makefile.inc.am src: don't statically link code that's already in libvirt.so 2019-05-17 14:34:45 +01:00
test_virtlogd.aug.in log: update docs for daemons to improve user understanding 2018-05-11 17:11:46 +01:00
virtlogd-admin.socket.in locking,logging: put a strong dep from admin socket to main socket 2019-07-11 14:13:03 +01:00
virtlogd.aug rpc: remove remains of obsolete log_buffer_size config parameter 2018-03-23 10:44:35 +00:00
virtlogd.conf logging: ensure virtlogd rollover takes priority over logrotate 2019-07-12 12:44:59 +01:00
virtlogd.pod Use https:// links for most sites 2017-10-16 10:22:34 +01:00
virtlogd.service.in logd: add support for admin protocol in virtlogd 2018-01-31 15:17:47 +00:00
virtlogd.socket.in logging: restrict sockets to mode 0600 2019-05-21 13:05:00 +01:00
virtlogd.sysconf