Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

507
Visualizações
Logging for Nodejs Express on AWS Fargate

I am developing an app with Nodejs/Express and I am planning to run the app on AWS Fargate. For logging, I want to have the app logs available in AWS Cloudwatch. What is the best way to log Nodejs/Express to Cloudwatch? Is there a library which I can use?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

There are many ways to collect logs, are you writing to the console, or using some logging tool. Here are some ideas:

If you are using Amazon ECS or Fargate with ECS then you can use the AWS Log driver.

If you are using Amazon EKS or Fargate with EKS then you can configure FluentD to log to cloudwatch.

CloudWatch Agent for Docker.

Use CloudWatch Container Insights to collect, aggregate, and summarize metrics and logs from your containerized applications and microservices. Container Insights is available for Amazon Elastic Container Service (Amazon ECS), Amazon Elastic Kubernetes Service (Amazon EKS), and Kubernetes platforms on Amazon EC2. Amazon ECS support includes support for Fargate.

In addition to logs, and insights you can log interactions between microservices using X-Ray. Here are some X-Ray examples with Fargate.

The EKS control plane can also be configured to log directly to CloudWatch.

As you mentioned you are using Node.Js, if you did not want to use console logging, but rather a library here are three:

  • Winston (Medium Blog Post)
  • AWS Javascript SDK
  • Pino
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda