aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
Deano 2019-01-28T10:46:04.067600Z

Hey everyone, I hope you are well! We are writing a Clojure app which will run in an AWS container. We would like to be able to write logs from Clojure into Cloudwatch so we can get to all the logs from one place. I have been reading the AWS documentation and I am not seeing any way of doing this effectively. Could someone point me in the right direction?

dottedmag 2019-01-28T10:52:03.068400Z

Here's Go tool that pushes logs to CloudWatch for the reference: https://github.com/boxfuse/cloudwatchlogs-agent

Deano 2019-01-28T11:59:06.069Z

@dottedmag Thank you, I will check out the links you sent me 🙂

viesti 2019-01-28T12:26:51.069700Z

If you run in ECS, you can use the awslogs docker log driver and stdout/stderr will be shipped to Cloudwatch

viesti 2019-01-28T12:28:02.070800Z

probably good to let someone else than your app to take care of shipping logs to the Cloudwatch service

dottedmag 2019-01-28T14:25:41.071600Z

On a regular EC2 their agent can also read and submit logs from files.

valtteri 2019-01-28T14:51:56.072500Z

ElasticBeanstalk also provides pre-configured log streaming to CloudWatch.

valtteri 2019-01-28T14:52:32.072800Z

It might be the easiest one to get started with.

ghadi 2019-01-28T17:23:18.073600Z

@deanjohnson03 are you using normal ECS or Fargate?

Deano 2019-01-28T17:24:50.074500Z

Thank you everyone

Deano 2019-01-28T17:25:05.074900Z

@ghadi we are using Fargate at the moment

ghadi 2019-01-28T17:25:58.075900Z

Me too. No agent or API interaction is necessary. If you write your logs to stdout it will go to the configured CloudWatch group/stream

Deano 2019-01-28T17:28:58.076800Z

Oh! Well that makes things a lot simpler 😄

Deano 2019-01-28T17:29:41.077600Z

Thank you very much, for your help. Thank you everyone for your responses they have been really helpful. I appreciate it 🙂