Home-assistant.log is truncated on restart

When I re-installed my Raspberry Pi from scratch (also upgrading Home Assistant from 0.69 to 0.73 and restoring all previous *.yaml files) a strange thing started to happen: each Home Assistant restart truncates existing home-assistant.log.

In my configuration.yaml I have:

logger:
  default: info

Data in History and Logbook is not affected.

Today I have updated Home Assistant from 0.73 to 0.75, but the issue still exists.

Could please somebody suggest what is the reason for that and how it can be fixed?

Thanks!

That’s normal.

If you’re using systemd to start HA you’ll find that you have all the historical log data via journalctl

1 Like

Hm… But why it never happened before the update? I’m using HA from January.

Thanks for the advice regarding systemd!

It seems to have been normal behaviour for at least the least few releases, though I rarely look at the actual log file. I normally use journalctl.

Starting the log file from zero on restart has been the standard behavior probably since day one but for sure for 1+ years.