buildkite / lifecycled

A daemon for responding to AWS AutoScaling Lifecycle Hooks
MIT License
146 stars 34 forks source link

Support JSON logging. #19

Closed itsdalmo closed 6 years ago

itsdalmo commented 6 years ago

The daemon has an important job on multiple instances, so I think it's probably a good idea to export the logs to e.g. CloudWatch and supporting JSON logs makes them easier to search.

Wondering if perhaps the instanceID should be a permanent field (in all log entries) to make it easier to search the logs?

lox commented 6 years ago

This makes sense to me. I've recently just been battling with Amazon Linux 2 to try and get systemd logs to Cloudwatch, which is a pain.

Would be happy to see instance-id included as standard in log messages too.