AWS Security ChangesHomeSearch

AWS gameliftservers documentation change

Service: gameliftservers · 2025-11-07 · Documentation medium

File: gameliftservers/latest/developerguide/logging-server-messages-rts.md

Summary

Entire documentation page for logging server messages in Amazon GameLift Servers Realtime was removed, including logging methods, log access instructions, and logging level configuration details.

Security assessment

While logging configuration is security-adjacent, the removal of documentation about logging practices doesn't directly indicate a security vulnerability. The change appears to be content removal/restructuring rather than addressing a specific security issue. However, the removed content did contain security-relevant information about log size limits and retention.

Diff

diff --git a/gameliftservers/latest/developerguide/logging-server-messages-rts.md b/gameliftservers/latest/developerguide/logging-server-messages-rts.md
index b6857b3fd..8b1378917 100644
--- a//gameliftservers/latest/developerguide/logging-server-messages-rts.md
+++ b//gameliftservers/latest/developerguide/logging-server-messages-rts.md
@@ -1 +0,0 @@
-[](/pdfs/gameliftservers/latest/developerguide/gameliftservers-dg.pdf#logging-server-messages-rts "Open PDF")
@@ -3,166 +1,0 @@
-[Documentation](/index.html)[Amazon GameLift Servers](/gameliftservers/index.html)[Hosting Guide](gamelift-intro.html)
-
-Logging messages in your server scriptAccessing server logsAdjusting the logging level
-
-# Logging server messages (Amazon GameLift Servers Realtime)
-
-You can capture custom server messages from your Amazon GameLift Servers Realtime in log files. To learn about logging for custom servers, see [Logging server messages (custom servers)](./logging-server-messages-custom.html).
-
-There are different types of messages that you can ouptput to your log files (see Logging messages in your server script). In addition to your custom messages, your Amazon GameLift Servers Realtime output system messages using the same message types and write to the same log files. You can adjust the logging level for your fleet to reduce the amount of logging messages that your servers generate (see Adjusting the logging level).
-
-###### Important
-
-There is a limit on the size of a log file per game session (see [Amazon GameLift Servers endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/gamelift.html) in the _AWS General Reference_). When a game session ends, Amazon GameLift Servers uploads the server logs to Amazon Simple Storage Service (Amazon S3). Amazon GameLift Servers will not upload logs that exceed the limit. Logs can grow very quickly and exceed the size limit. You should monitor your logs and limit the log output to necessary messages only.
-
-## Logging messages in your server script
-
-You can output custom messages in the [script for your Amazon GameLift Servers Realtime](./realtime-script.html). Use the following steps to send server messages to a log file:
-
-  1. Create a varaible to hold the reference to the logger object.
-    
-        var logger;
-
-  2. In the `init()` function, get the logger from the session object and assign it to your logger variable.
-    
-        function init(rtSession) {
-        session = rtSession;
-        logger = session.getLogger();
-    }
-
-  3. Call the appropriate function on the logger to output a message.
-
-**Debug messages**
-    
-        logger.debug("This is my debug message...");
-
-**Informational messages**
-    
-        logger.info("This is my info message...");
-
-**Warning messages**
-    
-        logger.warn("This is my warn message...");
-
-**Error messages**
-    
-        logger.error("This is my error message...");
-
-**Fatal error messages**
-    
-        logger.fatal("This is my fatal error message...");
-
-**Customer experience fatal error messages**
-    
-        logger.cxfatal("This is my customer experience fatal error message...");
-
-
-
-
-For an example of the logging statements in a script, see [Amazon GameLift Servers Realtime script example](./realtime-script.html#realtime-script-examples).
-
-The output in the log files indicates the type of message (`DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`, `CXFATAL`), as shown in the following lines from an example log:
-    
-    
-    09 Sep 2021 11:46:32,970 [INFO] (gamelift.js) 215: Calling GameLiftServerAPI.InitSDK...
-    09 Sep 2021 11:46:32,993 [INFO] (gamelift.js) 220: GameLiftServerAPI.InitSDK succeeded
-    09 Sep 2021 11:46:32,993 [INFO] (gamelift.js) 223: Waiting for Realtime server to start...
-    09 Sep 2021 11:46:33,15 [WARN] (index.js) 204: Connection is INSECURE. Messages will be sent/received as plaintext.
-
-## Accessing server logs
-
-When a game session ends, Amazon GameLift Servers automatically stores the logs in Amazon S3 and retains them for 14 days. You can use the [GetGameSessionLogUrl API call](https://docs.aws.amazon.com/gamelift/latest/apireference/API_GetGameSessionLogUrl.html) to get the location of the logs for a game session. Use URL returned by the API call to download the logs.
-
-## Adjusting the logging level
-
-Logs can grow very quickly and exceed the size limit. You should monitor your logs and limit the log output to necessary messages only. For Amazon GameLift Servers Realtime, you can adjust the logging level by providing a parameter in your fleet's runtime configuration in the form `loggingLevel:`LOGGING_LEVEL``, where ``LOGGING_LEVEL`` is one of the following values:
-
-  1. `debug`
-
-  2. `info` _(default)_
-
-  3. `warn`
-
-  4. `error`
-
-  5. `fatal`
-
-  6. `cxfatal`
-
-
-
-
-This list is ordered from least severe (`debug`) to most severe (`cxfatal`). You set a single `loggingLevel` and the server will only log messages at that severity level or a higher severity level. For example, setting `loggingLevel:error` will make all of the servers in your fleet only write `error`, `fatal`, and `cxfatal` messages to the log.
-
-You can set the logging level for your fleet when you create it or after it is running. Changing your fleet's logging level after it is running will only affect logs for game sessions created after the update. Logs for any existing game sessions won't be affected. If you don't set a logging level when you create your fleet, your servers will set the logging level to `info` by default. Refer to the following sections for instructions to set the logging level.
-
-###### Setting the logging level when creating a Amazon GameLift Servers Realtime fleet (Console)
-
-Follow the instructions at [Create an Amazon GameLift Servers managed EC2 fleet](./fleets-creating.html) to create your fleet, with the following addition:
-
-  * In the **Server process allocation** substep of the **Process management** step, provide the logging level key-value pair (such as `loggingLevel:error`) as a value for **Launch parameters**. Use a non-alphanumeric character (except comma) to separate the logging level from any additional parameters (for example, `loggingLevel:error +map Winter444`).
-
-
-
-
-###### Setting the logging level when creating a Amazon GameLift Servers Realtime fleet (AWS CLI)
-
-Follow the instructions at [Create an Amazon GameLift Servers managed EC2 fleet](./fleets-creating.html) to create your fleet, with the following addition:
-
-  * In the argument to the `--runtime-configuration` parameter for `[create-fleet](https://docs.aws.amazon.com/cli/latest/reference/gamelift/create-fleet.html)`, provide the logging level key-value pair (such as `loggingLevel:error`) as a value for `Parameters`. Use a non-alphanumeric character (except comma) to separate the logging level from any additional parameters. See the following example:
-
-
-
-    
-    
-    --runtime-configuration "GameSessionActivationTimeoutSeconds=60,
-                        MaxConcurrentGameSessionActivations=2,
-                        ServerProcesses=[{LaunchPath=/local/game/myRealtimeLaunchScript.js,
-                                        Parameters=**loggingLevel:error** +map Winter444,
-                                        ConcurrentExecutions=10}]"
-
-###### Setting the logging level for a running Amazon GameLift Servers Realtime fleet (Console)
-
-Follow the instructions at [Update an Amazon GameLift Servers fleet configuration](./fleets-editing.html) to update your fleet using the Amazon GameLift Servers Console, with the following addition:
-
-  * On the **Edit fleet** page, under **Server process allocation** , provide the logging level key-value pair (such as `loggingLevel:error`) as a value for **Launch parameters**. Use a non-alphanumeric character (except comma) to separate the logging level from any additional parameters (for example, `loggingLevel:error +map Winter444`).
-
-
-
-
-###### Setting the logging level for a running Amazon GameLift Servers Realtime fleet (AWS CLI)
-
-Follow the instructions at [Update an Amazon GameLift Servers fleet configuration](./fleets-editing.html) to update your fleet using the AWS CLI, with the following addition:
-
-  * In the argument to the `--runtime-configuration` parameter for `[update-runtime-configuration](https://docs.aws.amazon.com/cli/latest/reference/gamelift/update-runtime-configuration.html)`, provide the logging level key-value pair (such as `loggingLevel:error`) as a value for `Parameters`. Use a non-alphanumeric character (except comma) to separate the logging level from any additional parameters. See the following example:
-
-
-
-    
-    
-    --runtime-configuration "GameSessionActivationTimeoutSeconds=60,
-                        MaxConcurrentGameSessionActivations=2,
-                        ServerProcesses=[{LaunchPath=/local/game/myRealtimeLaunchScript.js,
-                                        Parameters=**loggingLevel:error** +map Winter444,
-                                        ConcurrentExecutions=10}]"
-
-![Warning](https://d1ge0kk1l5kms0.cloudfront.net/images/G/01/webservices/console/warning.png) **Javascript is disabled or is unavailable in your browser.**
-
-To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
-
-[Document Conventions](/general/latest/gr/docconventions.html)
-
-Logging for custom servers
-
-Security
-
-Did this page help you? - Yes
-
-Thanks for letting us know we're doing a good job!
-
-If you've got a moment, please tell us what we did right so we can do more of it.
-
-Did this page help you? - No
-
-Thanks for letting us know this page needs work. We're sorry we let you down.
-
-If you've got a moment, please tell us how we can make the documentation better.