Guide: How to retrieve logs from your device

To retrieve the primary log from the device, we have some terminal commands that can be executed (on and to view the main log file:


These functions can also take various parameters. To see the documentation run:

If logged onto the system using SSH (See guide) you can view the log file by running:

less /var/log/salt/minion

The full log file is almost always preferred, but a partial view of the log or the last errors are also very helpful, and a bit easier to retrieve due via the above commands.
Remember that the timestamps in the log files is UTC

You can upload the full file by using this guide.

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.