AWS Systems Manager
User Guide

View Session History

You can use the AWS Systems Manager console or the AWS CLI to view information about sessions in your account. In the console, you can view session details such the following:

  • The ID of the session

  • Which user connected to an instance through a session

  • The ID of the instance

  • When the session began and ended

  • The status of the session

  • The location specified for storing session logs (if enabled)

Using the AWS CLI, you can view a list of sessions in your account, but not the additional details that are available in the console.

For information about auditing and logging session history information, see Auditing and Logging Session Activity.

View Session History (Console)

You can use the AWS Systems Manager console to view details about the sessions in your account.

  1. Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/.

  2. In the navigation pane, choose Session Manager.

  3. Choose Start session.

  4. Choose the Session history tab.

View Session History (CLI)

To view a list of sessions in your account using the CLI, run the following command:

aws ssm describe-sessions --state History

For information about other options you can use with the describe-sessions command, see describe-sessions in the AWS Systems Manager section of the AWS CLI Command Reference.