0

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?

Log file

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470

1 Answers1

0

TOML file contains the converted contents of the JSON configuration file. We should not directly modify this file. It can be used to verify that JSON to TOML translation was successful.

When you modify the agent configuration file manually, use the fetch-config command to start the agent to ensure that the agent reflects your changes. Refer this documentation.

SwathiP
  • 315
  • 3
  • 5