Hello,
I have the logbook, recorder and logger components in my configuration.yaml:
# View all events in a logbook
logbook:
# recorder
recorder:
purge_keep_days: 2
exclude:
domains:
- weblink
- updater
- device_tracker
- binary_sensor
entities:
- sun.sun # Don't record sun data
- sensor.yr_symbol
# logger
logger:
default: warning
logs:
homeassistant.components.mqtt: debug
This keeps my home assistant db quite small (<100mb), which I like. (snappy history etc)
I added the logger as I would like to see all MQTT messages for debugging.
It is however keeping those messages for longer than 5 days.
So if I want to ctrl+f something, then it is a big mess and I need a lot of time to search.
How can I purge that information after 2 days.
By ‘that information’ I mean the information that appears if I press the info button in HA and then click:
“Press the button to load the full Home Assistant log.”
Both logbook and logger components do not have a purge configuration variable.
How or Can I purge the HA log after 2 days?