Duplicated agent logs and not cleaning up correctly #3201
Labels
bug
Something isn't working
triage
Add this label to issues that should be triaged and prioretized in the next planning call
unconfirmed
Kairos version:
3.3.1, but also olders
CPU architecture, OS, and Version:
Describe the bug
Seems we are logging both to
/var/log/kairos
and/run/kairos
. The problem is that while/var/log/kairos
logs are rotated,/run
isn't rotated and supposedly populated only with sentinel or env config file. Additionally, our current policy seems to be very relaxed and keeps too many files around. The default logrotate policy has rotate till 3 instead of delete using maxage. This is an host almost 2mo old:To Reproduce
Boot a kairos system
Expected behavior
To have logs in
/run/kairos
only if/var/log/kairos
is not available or immutableLogs
Additional context
The text was updated successfully, but these errors were encountered: