advantageous / systemd-cloud-watch

Alt util to AWS cloudwatch agent that works w/ systemd journal and sends the data in batches to AWS cloudwatch.
https://advantageous.github.io/systemd-cloud-watch/
90 stars 36 forks source link

Not getting instance_id #15

Open abzmungul opened 7 years ago

abzmungul commented 7 years ago

it seems that the logstream does not pick up the instance_id correctly

I get NO_NAME-xxx-xx-x-xx-eu-west-1a, is there a way to set this so that the instance_id dynamically appears as the logstream name?

fiunchinho commented 7 years ago

I ran into the same issue. Any help?

Tanbouz commented 7 years ago

You might need to append this to your current IAM policy under "statements" or you can create a new policy and attach it to the role.

{ "Effect": "Allow", "Action": [ "ec2:DescribeInstances" ], "Resource": [ "*" ] }

abzmungul commented 7 years ago

unfortunately this did not work still getting this

LogStreamName was not set so using NO_NAME-xxx-xx-x-xxx-eu-west-1c

donovan commented 6 years ago

@Tanbouz suggestion works for me.