[PATCH v2 0/5] logging: add log cleanup for obsolete domains

Oleg Vasilev posted 5 patches 1 year, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20221214192550.149417-1-oleg.vasilev@virtuozzo.com
There is a newer version of this series
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
[PATCH v2 0/5] logging: add log cleanup for obsolete domains
Posted by Oleg Vasilev 1 year, 4 months ago
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@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

-- 
2.38.1
PING [PATCH v2 0/5] logging: add log cleanup for obsolete domains
Posted by Oleg Vasilev 1 year, 4 months ago
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@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
>