core: Log file may become too large, "max_entries" does not work
The problem
Running HA in Container on a host with 32GB SD memory. At least twice I observed an issue:
- log files became very large,
- no free space was left on SD,
- recorder stopped working.
Here the log file became > 6GB:

My config:
system_log:
max_entries: 200
fire_event: true
I believed that no more than 200 entries will be saved in the Log.
Seems that max_entries does not work.
Earlier I sometimes noticed too that amount of rows in Log is larger than 200; but it was not crucial for me - before I faced THIS HUGE amount.
It is clear that the Log should not be filled with such amount of errors/warnings - that I should find a reason of these errors/warnings in my setup. But the point of this issue is “Why max-enties does not work?”.
What version of Home Assistant Core has the issue?
2022.12.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
System Log
Link to integration documentation on our website
https://www.home-assistant.io/integrations/system_log/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 23 (9 by maintainers)
Still an issue on 2024.3.0
this is still an issue
I’d like to see some additional options. To rotate log files every day. Looks like there is no owner.
this is still an issue
https://drewdevault.com/2021/10/26/stalebot.html
@thefrip Thanks for the founding. Same as I said in Community:
Currently it is clearly said that
So either there is a bug or Docs are outdated.
In both cases there should be some feedback from Devs - which I do not see here in this issue.