Skip to content

Commit

Permalink
Merge pull request #43 from octoenergy/switch_cw_agent_to_run_as_root
Browse files Browse the repository at this point in the history
Switch CW agent to run as root
  • Loading branch information
alberto-lopez-kraken authored Jun 7, 2022
2 parents 2fe3c02 + e3db6cb commit 6a2f623
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/cloudwatch/amazon-cloudwatch-agent.json.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"agent": {
"metrics_collection_interval": 60,
"logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log",
"run_as_user": "cwagent",
"omit_hostname": true
"logfile": "/var/log/amazon-cloudwatch-agent.log",
},
"metrics": {
"namespace": "EC2/Custom",
Expand Down

0 comments on commit 6a2f623

Please sign in to comment.