Skip to content

Commit 2ebad55

Browse files
Adding nginx access and error logs
1 parent 824f21a commit 2ebad55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ansible/roles/cloudwatch-agent/files/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151
"file_path": "/var/log/audit/audit.log",
5252
"log_group_name": "selinux",
5353
"log_stream_name": "{instance_id}"
54+
},
55+
{
56+
"file_path": "/var/log/nginx/access.log",
57+
"log_group_name": "nginx-access",
58+
"log_stream_name": "{instance_id}"
59+
},
60+
{
61+
"file_path": "/var/log/nginx/error.log",
62+
"log_group_name": "nginx-error",
63+
"log_stream_name": "{instance_id}"
5464
}
5565
]
5666
}

0 commit comments

Comments
 (0)