GameLift / Client / get_game_session_log_url



Retrieves the location of stored game session logs for a specified game session on Amazon GameLift managed fleets. When a game session is terminated, Amazon GameLift automatically stores the logs in Amazon S3 and retains them for 14 days. Use this URL to download the logs.


See the Amazon Web Services Service Limits page for maximum log file sizes. Log files that exceed this limit are not saved.

All APIs by task

See also: AWS API Documentation

Request Syntax

response = client.get_game_session_log_url(

GameSessionId (string) –


A unique identifier for the game session to get logs for.

Return type:



Response Syntax

    'PreSignedUrl': 'string'

Response Structure

  • (dict) –

    • PreSignedUrl (string) –

      Location of the requested game session logs, available for download. This URL is valid for 15 minutes, after which S3 will reject any download request using this URL. You can request a new URL any time within the 14-day period that the logs are retained.


  • GameLift.Client.exceptions.InternalServiceException

  • GameLift.Client.exceptions.NotFoundException

  • GameLift.Client.exceptions.UnauthorizedException

  • GameLift.Client.exceptions.InvalidRequestException