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

Oleg Vasilev posted 2 patches 1 week, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20221121092957.11955-1-oleg.vasilev@virtuozzo.com
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        | 137 +++++++++++++++++++++++++++----
src/logging/log_handler.h        |  17 ++--
src/logging/test_virtlogd.aug.in |   2 +
src/logging/virtlogd.aug         |   2 +
src/logging/virtlogd.conf        |   7 ++
8 files changed, 153 insertions(+), 30 deletions(-)
[PATCH 0/2] logging: add log cleanup for obsolete domains
Posted by Oleg Vasilev 1 week, 6 days ago
Motivation comes from the case when libguestfs has repeatedly created
transient VMs, which in turn created lots of logs without any mechanism
to delete it afterwards. 

More motivation in [1]. Previous attempt in [2].

[1]: https://listman.redhat.com/archives/libvir-list/2022-February/msg00425.html

[2]: https://listman.redhat.com/archives/libvir-list/2022-February/msg00865.html

Oleg Vasilev (2):
  logging: refactor to store config inside log handler
  logging: add log cleanup for obsolete domains

 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        | 137 +++++++++++++++++++++++++++----
 src/logging/log_handler.h        |  17 ++--
 src/logging/test_virtlogd.aug.in |   2 +
 src/logging/virtlogd.aug         |   2 +
 src/logging/virtlogd.conf        |   7 ++
 8 files changed, 153 insertions(+), 30 deletions(-)

-- 
2.38.1
Re: [PATCH 0/2] logging: add log cleanup for obsolete domains
Posted by Oleg Vasilev 5 days, 1 hour ago
Kindly ping.

The previous attempt didn't get any attention, and I am not sure what 
else to do.

On 21.11.2022 15:29, Oleg Vasilev wrote:
> Motivation comes from the case when libguestfs has repeatedly created
> transient VMs, which in turn created lots of logs without any mechanism
> to delete it afterwards.
> 
> More motivation in [1]. Previous attempt in [2].
> 
> [1]: https://listman.redhat.com/archives/libvir-list/2022-February/msg00425.html
> 
> [2]: https://listman.redhat.com/archives/libvir-list/2022-February/msg00865.html
> 
> Oleg Vasilev (2):
>    logging: refactor to store config inside log handler
>    logging: add log cleanup for obsolete domains
> 
>   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        | 137 +++++++++++++++++++++++++++----
>   src/logging/log_handler.h        |  17 ++--
>   src/logging/test_virtlogd.aug.in |   2 +
>   src/logging/virtlogd.aug         |   2 +
>   src/logging/virtlogd.conf        |   7 ++
>   8 files changed, 153 insertions(+), 30 deletions(-)
>