PING [PATCH v2 0/5] logging: add log cleanup for obsolete domains
Oleg Vasilev
oleg.vasilev at virtuozzo.com
Wed Jan 4 10:32:21 UTC 2023
Ping
On 15.12.2022 01:25, Oleg Vasilev wrote:
> Presently, logs from deleted domains remain forever. Particular motivation
> comes from the case when libguestfs has repeatedly created transient VMs,
> which in turn created plenty of logs. This takes up space and lots of files
> troubles filesystem navigation.
>
> More motivation in [1]. Patch solving same problem in [2].
>
> Changes in v2: substantial rework according to Martin Kletzander's comments
>
> v1: https://www.mail-archive.com/libvir-list@redhat.com/msg233754.html
>
> [1]: https://listman.redhat.com/archives/libvir-list/2022-February/228149.html
>
> [2]: https://listman.redhat.com/archives/libvir-list/2022-February/msg00865.html
>
> CC: Martin Kletzander <mkletzan at redhat.com>
>
> Oleg Vasilev (5):
> logging: refactor to store config inside log handler
> logging: move virLogHandler to header
> logging: add configuration for future log cleaner
> logging: add log cleanup for obsolete domains
> logging: use the log cleaner
>
> po/POTFILES | 1 +
> src/logging/log_cleaner.c | 276 +++++++++++++++++++++++++++++++
> src/logging/log_cleaner.h | 29 ++++
> src/logging/log_daemon.c | 6 +-
> src/logging/log_daemon_config.c | 9 +
> src/logging/log_daemon_config.h | 3 +
> src/logging/log_handler.c | 64 +++----
> src/logging/log_handler.h | 50 ++++--
> src/logging/meson.build | 1 +
> src/logging/test_virtlogd.aug.in | 2 +
> src/logging/virtlogd.aug | 2 +
> src/logging/virtlogd.conf | 14 ++
> 12 files changed, 399 insertions(+), 58 deletions(-)
> create mode 100644 src/logging/log_cleaner.c
> create mode 100644 src/logging/log_cleaner.h
>
More information about the libvir-list
mailing list