Logging (Beta)
Access server logs from your game servers to troubleshoot issues and monitor performance.
Read time 6 minutesLast updated 3 days ago
Logging and analyzing logs is a basic and extremely important way of troubleshooting a game server. Although third-party logging services exist, they require additional setup and configuration before you can use them with Unity Gaming Services.
The Multiplay Hosting Logging service removes the friction of setting up a logging system for Unity Dashboard projects. It provides a way to view, search, and download logs from the Unity Dashboard without setting up a custom integration with a third-party service.
By using this service, you agree that you won't allow or otherwise let any third party to transmit to Unity or store any personal data in connection with the use of the logging feature.
Requirements
During the closed beta release, you must meet the following requirements to use Multiplay Hosting Logging:- You must have activated the Multiplay Hosting service.
- Unless you set a specific logging path, Multiplay Hosting looks in the directory for logs.
/usr/local/games/**/*.log - The default file extension is .log. If you use a different file extension, you must set a custom logging path with a configuration variable or launch parameter.
Limitations
- Log files are only maintained for 30 days.
- You can’t exceed more than 100 GB of logs within a 30-day period.
- You can't exceed more than a 100,000 log lines per hour per machine.
- Analytic data for logs and the logging service isn’t available for the closed beta.
- You can’t sort logs by fields within structured logs. This is because Multiplay Hosting can’t expect the log output format.
Features
The closed beta release includes the following features and functionalities.- Viewing logs for a specific server.
- Viewing logs for all servers in a fleet.
- Searching logs for a single server.
- Searching logs for all servers in a fleet.
- Download a log file that corresponds to a context.
- Accessing logs for offline servers.
- Filtering log files to a specific log file sequence.
- Using log context to discover what happened before and after a log entry.
- Activating and deactivating the logging service.
- Logging service limit display.
- Logging captures STDOUT in
stdout.log
Get started
You must enable logging through the Unity Dashboard before accessing logging features.
- Enable access to this feature by contacting Unity Support.
- In the Dashboard, select Multiplay Hosting > Debugging.
- Select the Logging tab.
- Select Enable Logs.
- Read through the limitations dialog, then select Enable.
/usr/local/games/**/*
Guides
Explore the following guides to learn how to perform specific logging tasks within Multiplay Hosting Logging.View logs
To view game server logs:- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
Search logs
To search through logs:- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
- Type the search words into the search bar.
- If you want to automatically filter as you type, enable Filter on search.
Search fleet logs
You can search through all logs from a specific fleet by selecting the Fleet, then searching the log messages or further filtering by Date range or Servers.- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
- Use the Fleet dropdown menu to select a fleet.
- Use the search bar to search for keywords, or search by Date range.
Filter logs
To filter logs by date range, fleet, or game server:- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
- Select the filter you want to use:
Filter by date range
You can filter logs by one of the pre-set date filters (such as the last 24 hours) or a custom date range.- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
- Set Date range to Custom.
- Select the Start date and the End date for which to filter the logs.
- Select Apply. If you leave the End date blank, it defaults to the current day.
Filter by fleet
- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
- Use the Fleet dropdown menu to select a fleet.
View logs in context
There are additional contextual filter options available in the More (⋮) menu for each log entry. This menu allows you to filter by fleet, filter by server, filter by log file, or view the log entry in context.Filter on fleet
Filter on fleet filters the current log search results to only display results from the same fleet as the log entry you selected.Filter on server
Filter on server filters the current log search results to only display results from the same server as the log entry you selected. After you select a context filter, you can further filter the results by another context.Filter on logfile
Filter on logfile filters the current log search results to only display results from the same logfile as the log entry you selected. Filtering by logfile automatically filters results by the fleet and server associated with the logfile.View in context
Viewing a log file in context automatically filters logs by the same fleet and server as the log entry and limits the time to five minutes before and after the entry.Download logs
To download logs:- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
- Select Download logs.
Download a specific log file
You can download the source log file for a specific log entry by selecting the Download source log file icon at the end of the log entry's row, which downloads log entries from the specified log file within the Date range filter.Download logs from a specific time
You can download logs from a specific time by filtering the logs by Date range, then selecting Download logs.- In the Unity Dashboard, open Multiplay Hosting.
- Select Debugging.
- Select the Logging tab.
- Set Date range to Custom.
- Select the Start date and the End date for which to filter the logs, then select Apply. If you leave the end date blank, it defaults to the current day.
- Select Download logs.
Download log search results
You can download the current search results by selecting Download logs. It downloads only the loaded log results by default.Disable logs
You can disable Multiplay Hosting logs at any time. After disabling logs, you won't have access to your logs or Multiplay Hosting logging features. Disabling Multiplay Hosting logs doesn't delete any log files. Your servers will continue to write to the log files and you can still access the log files from the standard Multiplay Hosting logs view.Troubleshooting
If logs aren't displayed in the Unity Dashboard:- Make sure you’re using the default log output directory or you’ve specified a custom log output directory.
- If you use a file extension other than .log, make sure you have a custom log output directory.
- If your game uses the Unreal Engine, refer to Redirect log output for games using Unreal.