Amazon Cloudwatch Agent won't start

Viewed 4057

After installing Cloudwatch Agent on Amazon Linux 2 EC2, I ran cloudwatch-agent-ctl status

This command shows the status as stopped

I tried running 'cloudwatch-agent-ctl status` and got the following message:

cwagent-otel-collector will not be started "as it has not been configured yet"

Am not sure if the above message is causing CWAgent to not start. Any pointers?

Any pointers on how to find why my CWAgent won't start?

1 Answers

Before you can start your CW agent, you must configure it. From docs:

Before running the CloudWatch agent on any servers, you must create a CloudWatch agent configuration file.

You can follow the docs how to setup the config files, before running the agent.

Related