I have successfully installed CloudWatch agent on my EC2 instance where we are using Apache2.
After configuring my config.json
file when I am restarting the CloudWatch agent it showing error:
amazon-cloudwatch-agent is not configured. Applying amazon-cloudwatch-agent default configuration.
and creating the default cloud-watch-agent.toml
file. When I am editing it manually and again restarting the CloudWatch agent cloud-watch-agent.toml
file again reset to its default value.
How to overcome this problem?