Monitor Microsoft Tunnel

After installation of Microsoft Tunnel, you can view the server configuration and server health in the Microsoft Endpoint Manager admin center (endpoint.microsoft.com).

Use the admin center UI

Sign in to Microsoft Endpoint Manager admin center, and go to Tenant administration > Microsoft Tunnel Gateway, and select the Health status tab.

While in preview, Health status only shows whether the server has connected in the last 5 minutes or not. Future enhancements will add additional details.

Use mst-cli command-line tool

Use the mst-cli command-line tool to get information about the Microsoft Tunnel server. This file is added to the Linux server when the Microsoft Tunnel installs. The tool is located at: /usr/sbin/mst-cli.

For more information and command-line examples, see mst-cli command-line tool for Microsoft Tunnel.

View Microsoft Tunnel logs

Beginning in October 2020, Microsoft Tunnel logs information to the Linux server logs in the syslog format. You can view the log entries by using the jouralctl -t command followed by one or more tags that are specific to Microsoft Tunnel entries:

  • ocserv - Display server logs.
  • mstunnel-agent: Display agent logs.
  • mstunnel_monitor: Display monitoring task logs.

For example, to view information for only the tunnel server, run ./journalctl -t ocserv. To view information for all three, you can run ./journalctl -t ocserv -t mstunnel-agent -t mstunnel_monitor.

You can add -f to the command to display an active and continuing view of the log file. For example, to actively monitor ongoing processes for Microsoft Tunnel, run ./journalctl -t mstunnel_monitor -f.

Additional options for journalctl:

  • journalctl -h – Display command help for journalctl.
  • man journalctl – Display additional information.
  • man journalctl.conf Display information on configuration For more information about journalctl, see the documentation for the version of Linux that you use.

Next steps

Reference for Microsoft Tunnel