Closed twrichards closed 2 years ago
https://github.com/guardian/devx-logs can be used instead here 🎉 @jacobwinch recently added support for the automatic shipment of application logs.
Is this still required given @akash1810's comment? Looking at the repo, it looks like support for application logs is still in beta, so perhaps it is!
Is this still required given @akash1810's comment? Looking at the repo, it looks like support for application logs is still in beta, so perhaps it is!
Indeed @jonathonherbert , keen to replace this once 'application logs' feature of devx-logs
is GA.
In the meantime, I'm keen to get this closed out soon as its been open for a while.
devx-logs
shipment of application logs for Play is solid now. We've not GA'd it just yet as we're testing the story for Node apps.
https://github.com/guardian/cdk-playground/pull/198 provides a Play example. The majority of the commits are preparation work (adding log lines, configuring logback to use the JSON encoder, etc). The only other change needed would be to add a tag to your ASG.
I'd be really keen to use it here, if possible?
This PR now uses https://github.com/guardian/devx-logs solution (thanks @akash1810) - PR description updated accordingly.
Co-authored-by: @andrew-nowak Co-authored-by: @Aracho1 Co-authored-by: @akash1810
https://github.com/guardian/editorial-tools-platform/pull/605 must be deployed first.
This PR changes our logging to the safer 'FluentBit' solution (which doesn't affect runtime behaviour of the app, but instead scoops up console output and formats before sending on to central ELK).
kinesis-logback-appender
NOTE the
editorial-tools-bionic-java8
amigo recipe was updated to addcdk-base
role (rather thanfluentbit
role) to piggy-back on the https://github.com/guardian/devx-logs solution (which handles the fluentbit configuration and process)✅ tested on
CODE
(in conjunction with https://github.com/guardian/editorial-tools-platform/pull/605)