Guide: How to retrieve logs from your device

The contents of this guide have been moved to our documentation website here.

This thread will remain open for discussion.

1 Like

Hi Malte,
please explain how to handle logging for own custom code service. /var/log/salt/minion file is enormously large and contains all messages of autoPi system.

Hi @Dima.

Apologies for the prolonged response.

You are able to filter out the log files using the following command (while connected through SSH):

$ sudo cat /var/log/salt/minion | grep --color "my_service_name"

If you’d like to continuously look at the logs, you can use this command instead:

$ sudo tail -f /var/log/salt/minion | grep --color "my_service_name"

This command will keep reading the end of the minion log file and display messages coming in from your service.