How to access UP4W logs

At some point you may want to read the UP4W logs, most likely for debugging purposes. The agent and the service store their logs separately. This guide shows you where to find each of the logs.

Access the logs for the WSL Pro service

To access the logs of a specific distribution’s WSL-Pro-Service, you must first launch the distribution and then query the journal:

journalctl -u wsl-pro.service

For more information on using the journal, you can check out its man page with man journalctl or online.

These logs may be insufficient for proper debugging, so you may be interested in looking at the agent’s logs as well.

Access the logs for the Windows Agent

To access the logs for the Windows Agent:

  1. Go to your home directory

    • Open the file explorer

    • Write %USERPROFILE% at the address

  2. In the home directory, find the .ubuntupro directory and double-click on it.

  3. In the .ubuntupto folder, find file log and open it with any text editor.

    • This file contains the logs sorted with the oldest entries at the top and the newest at the bottom.