Menu
Amazon CloudWatch Logs
User Guide

Stop the CloudWatch Logs Agent

Use the following procedure to stop the CloudWatch Logs agent on your EC2 instance.

To stop the agent

  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 stop

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

    sudo service awslogsd stop