如何停止已由 cloudwatch 代理在 cloudwatch 中启动的日志流
How to stop a log stream that has been started in cloud watch by cloud watch agent
如何停止已由云监视代理在 ec2 中启动的日志流。如何删除或永久停止从 log_group
发送日志
您可以删除日志组,select日志组->操作->删除
但是你为什么不停止代理本身?
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
或者如果你想删除所有的日志组那么
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | awk '{print }' | grep -v ^$ | while read x; do aws logs delete-log-group --log-group-name $x; done
sudo service awslogs stop
Will stop all the logs that are going
If you want to stop a particular log-group and continue sending others Use this:
sudo service awslogs stop (log-group name)
如何停止已由云监视代理在 ec2 中启动的日志流。如何删除或永久停止从 log_group
发送日志您可以删除日志组,select日志组->操作->删除
但是你为什么不停止代理本身?
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
或者如果你想删除所有的日志组那么
aws logs describe-log-groups --query 'logGroups[*].logGroupName' --output table | awk '{print }' | grep -v ^$ | while read x; do aws logs delete-log-group --log-group-name $x; done
sudo service awslogs stop
Will stop all the logs that are going
If you want to stop a particular log-group and continue sending others Use this:
sudo service awslogs stop (log-group name)