You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
484 B
Markdown
20 lines
484 B
Markdown
# Cloudwatch
|
|
|
|
|
|
|
|
```sh
|
|
|
|
$ sudo service awslogs start
|
|
$ sudo service awslogs stop
|
|
|
|
# agent running status
|
|
$ sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a status
|
|
|
|
# stop agent
|
|
$ sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -m ec2 -a stop
|
|
|
|
# load start & latest config
|
|
$ sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json
|
|
```
|
|
|