Skip to content

CloudWatch Agent config file

0

Hello!
I try to do next log path in CloudWatch: /asg/raw/i-000fdfffdf/httpd
But conf file don't work. I have tried use ${aws:InstanceId}, {aws:InstanceId}

If I do that :
"file_path": "/var/log/httpd/",
"log_group_name": "/asg/raw/",
"log_stream_name": "httpd",
"timezone": "Local"
it is work. But I neet InstanceID in path
{
"file_path": "/var/log/httpd/
",
"log_group_name": "/asg/raw/${aws:InstanceId}",
"log_stream_name": "httpd",
"timezone": "Local"
}

asked 4 years ago493 views
1 Answer
0

I used "InstanceId" instead "instance_id"

answered 4 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.