Configure Workspace Logs

Prev Next

Logs provide detailed insight into workspace activity and help diagnose failures or errors. Workspace administrators can control which logs and metrics Rocket.Chat should release. This guide explains how to configure the available settings.

Server logs access viewer was removed in Rocket.Chat 8.0

We recommend configuring an observability stack. For details on how to view your workspace logs and metrics, see Monitor Workspace Logs and Metrics.

Configure logs

To access this page, go to Manage → Workspace → Settings → Logs. Modify the following settings:

Field

Description

Log level

From the drop-down menu, select the level of logs to receive. The options are:

  • 0 - Errors only: Displays the errors only.

  • 1 - Errors and information: Displays various workspace activities and errors.

  • 2 - Errors, information and debug: Displays debugging details. Use this option for detailed log entries.

Trace method calls

Enable this option to trace every method call.

Trace method filter

Enter specific text to filter the traced method calls. The text here is evaluated as a regular expression (new RegExp('text')). Keep it empty to show a trace of every call.

Trace subscription calls

Enable this option to trace every subscription call.

Trace subscription filter

Enter specific text to filter the traced subscription calls. The text here is evaluated as a regular expression (new RegExp('text')). Keep it empty to show a trace of every call.

Log exceptions to channel

Enter the name of an existing channel to receive all captured exceptions. Leave empty to ignore exceptions.

Configure Prometheus

If you have set up a Prometheus server for monitoring purposes, you can integrate it with Rocket.Chat. On the workspace’s Logs page, update the following Prometheus settings:

Field

Description

Enabled

Enable this option to activate Prometheus monitoring.

Port

The port to listen to.

Reset interval (ms)

Enter the time (in milliseconds) when the connection should be reset.

Collect NodeJS GC

Keep this option enabled always to activate NodeJS garbage collector. It’s useful for debugging.

API: Track user agent

Enable this option to track the API calls of user agent.

If you enabled monitoring when deploying your Rocket.Chat workspace, the Prometheus settings were configured automatically. Do not modify them, as this may disrupt monitoring.

To change the workspace troubleshooting settings, see Troubleshoot Settings.

Next steps

To review the troubleshooting settings that Support may ask you to change, see Troubleshoot Settings.