Report the CloudWatch Logs agent status - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Report the CloudWatch Logs agent status

Use the following procedure to report the status of the CloudWatch Logs agent on your EC2 instance.

To report the agent status
  1. Connect to your EC2 instance. For more information, see Connect to Your Instance in the Amazon EC2 User Guide for Linux Instances.

    For more information about connection issues, see Troubleshooting Connecting to Your Instance in the Amazon EC2 User Guide for Linux Instances

  2. At a command prompt, type the following command:

    sudo service awslogs status

    If you are running Amazon Linux 2, type the following command:

    sudo service awslogsd status
  3. Check the /var/log/awslogs.log file for any errors, warnings, or issues with the CloudWatch Logs agent.