2025-02-07 13:27 UTC
There are likely better ways to do this, but here’s a quick one-liner to tail -f your home assistant logs if you’ve got HA running in a docker container on a linux box:
docker ps -a | grep homeassistant | cut -d ' ' -f1 | xargs docker logs -f
then I create an alias for this in my .bashrc
alias log_ha='docker ps -a | grep homeas | awk "{print \$1}" | xargs docker logs -f'
#selfhosted #HomeAssistant
Replies (0)
No replies.