How read logs file

hi everyone.

I would like to read log files present in /var/log/journal, but it seems that HA doesn’t have journalctl.

So I would like to ask:

  • How reading journal file present in the above mentioned directory?
  • how is possible that HA creates journal file but journalctl is not recognized as command?

I’m facing an issue where at certain point HA (using Raspberry PI516Gb) crashes (no application is running, no data is stored, but integration work) and I have to reflash the OS. but I would like to understand what is causing this catastrofic issue.

thanks in advance

If you have access to the UI you can download the logs from Settings > System > Logs. There’s a download icon at the top right:

Alternatively, you can enable the “duplicate” log file. This will create 2 text log files for you in the HA config folder, which you can access via Samba or whatever else you prefer:

  • homeassistant.log will be the live log for the current HA session
  • homeassistant.log.1 will be the log for the previous HA session (before your last HA restart)

Instructions on how to enable the log file are here Common tasks - Operating System - Home Assistant

1 Like