aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
souenzzo 2020-04-24T15:22:04.102600Z

What are the options for logging clojure into aws? logback appender to s3? logback appender to cloudwatch?

👀 1
viesti 2020-04-24T15:27:44.103200Z

run stuff via ECS and just println JSON 🙂

1
viesti 2020-04-24T15:28:03.103700Z

docker log driver will then push stdout/stderr to cloudwatch, cloudwatch parses the json even

viesti 2020-04-24T15:29:01.104500Z

that is if you'r in dockerlandia

souenzzo 2020-04-24T17:06:27.107Z

@viesti I'm running in EC2 and I can't change that (there is no c5 class in ECS) I'm right that I want something like a appender to cloudwatch service. but still looking for possible implementations

viesti 2020-04-24T17:26:22.110500Z

hmm, if you can install cloudwatch agent (or Fluentbit) to the machine, then you could log to a file and let the agent tail it and push to CloudWatch

viesti 2020-04-24T17:35:31.113900Z

seems that there are multiple logback appenders for cloudwatch (google brought up com.j256.cloudwatchlogbackappender/cloudwatchlogbackappender for example), I haven't used them but they might also be of use

viesti 2020-04-24T17:37:38.115700Z

extra log shipping agent might sound a bit much, but then again, that puts the error handling of pushing logs to a remote service, out from the JVM of the application

viesti 2020-04-24T17:39:52.117300Z

on ECS, I'd think that just running the ECS agent and configuring the cluster it checks into should make the box available to ECS, but yeah, there's more to it if the application isn't on docker (and might be more stuff I don't know about)

orestis 2020-04-24T18:04:47.118200Z

Amazon is doing something for Elastic Beanstalk, I think installing the cloud watch agent?

valtteri 2020-04-24T18:48:35.119400Z

CloudWatch Agent is simple to install and it comes with a nice wizard that creates the config file for you. You can tell it which log files you want to start tailing.

valtteri 2020-04-24T18:48:46.119700Z

And yes, I think Beanstalk uses CloudWatch agent as well