Wednesday, September 14, 2022

How to enable Teams Media logs by default in all enduser systems

What is Teams Media log and why it's important?

Media logs contain diagnostic data about audio, video, and screen sharing in Teams meetings. You need these logs when you open a support ticket with Microsoft to troubleshoot the media quality issues.

How to enable media logging?

There are two ways to enable media logging in Teams,

  • End User Configuration - Users can turn on/off media logging manually and restart the client before reproducing the issue.
  • Admin Configuration - Manage media logging settings through policy.

End User Configuration -

Users must enable it on the Teams client they logged in under the settings >General > Enable logging for meeting diagnostics (requires restarting Teams). This setting is specific to the endpoint, if the same user logged in on more than one system, they have to enable it on each system.


Admin Configuration -

Microsoft recently released a new PowerShell policy to enable media settings per user level or Global level.

Enable media logging settings for a single user -

Grant-CsTeamsMediaLoggingPolicy -Identity 'gmani@domain.com' -PolicyName Enabled

Enable media logging settings at tenant level -

Grant-CsTeamsMediaLoggingPolicy -Global -PolicyName Enabled

How to disable media logging that enabled tenant level?

Grant-CsTeamsMediaLoggingPolicy -Global -PolicyName $null

Once the policy is assigned it will be enabled by default and the user cannot disable it manually.


Collect the Media Logs on the Windows PC

  • The files will be available in the following locations:
    • %appdata%\Microsoft\Teams\media-stack\\\*\.blog
    • %appdata%\Microsoft\Teams\skylib\\\*\.blog

Collect the Media Logs on the Mac PC

  • The files will be available in the following locations:
    • ~/Library/Application Support/Microsoft/Teams/media-stack\\\*\.blog
    • ~/Library/Application Support/Microsoft/Teams/skylib\\\*\.blog

Log file nameDescription
Teams.msrtc-0-s1039525249.blogContains information related to the media stack. This includes channel status such as resolution, decoders and encoders used, and the number of frames sent and received, and camera and video-based screen sharing (VBSS) session status.
rtmcontrol.msrtc-0-2415069487.blogRecords information related to remote control actions, such as the time stamp when control is given, and mouse pointer information.
Teams_MediaStackETW-2-U-xr-U.etlRecords media stack trace events.
Debug-0-s2790420889.blogContains information related to the media agent, including rendering quality.
tscalling-0-2061129496.blogRecords events in the ts-calling API.

No comments:

Post a Comment