Viewing logs
Firezone maintains diagnostic log files in various locations depending on the component and operating system. Logs are scrubbed for sensitive and personally-identifiable information before being written to disk.
Diagnostic logs are used primarily by the Firezone team for troubleshooting connectivity and other issues, but they may also be useful for diagnosing issues by advanced users and admins.
Log directory locations
Component | Log directory |
---|---|
macOS Client | ~/Library/Group Containers/47R2M6779T.dev.firezone.firezone/Library/Caches/logs |
iOS Client | N/A |
Android/ChromeOS Client | /data/data/dev.firezone.android/caches/logs |
Linux Client | Set by the user via the LOG_DIR environment variable, otherwise STDOUT |
Windows Client | %APPDATA%\Local\dev.firezone.client\data\logs |
Gateway | Logs are written to STDOUT by default and viewable either by docker logs firezone-gateway or journalctl -u firezone-gateway |
Exporting Client logs
Log files can be conveniently exported from the macOS, iOS, Android/ChromeOS, and Windows Clients from the "Diagnostic Logs" tab of the Settings screen. This will bundle the logs from the log directory listed above into an archive file that can be easily shared.
Exporting Gateway logs
To export logs from the Gateway Docker container, use the docker logs
command
and redirect the output to a file:
docker logs firezone-gateway > firezone-gateway.log
See the Docker documentation for a full list of log drivers and options available.
To export logs from the Gateway systemd service, use the journalctl
command
and redirect the output to a file:
journalctl -u firezone-gateway > firezone-gateway.log
See the journalctl manpage for a full list of options available.
Clearing logs
Simply delete the files in the log directories listed above.
For macOS, iOS, Android/ChromeOS, and Windows Clients, log directories can be cleared in the "Diagnostic Logs" tab in the Settings screen.