Send Docker Entrypoint logs to APP in realtime

157 Views Asked by At

I'm looking for ideas to send Docker Logs for each runs to be sent to my application in realtime. I'm looking ways this can be done. Please let me know how this can be done.

Let me know if you have done this already or know how this can be achieved. I want to build feature similar to Netlify or vercel where they show you all build log on UI in realtime. I want something similar for my node application.

1

There are 1 best solutions below

1
styfle On

You can achieve this with Vercel and Log Drains.

Log Drains make it easy to collect logs from your deployments and forward them to archival, search, and alerting services by sending them via HTTPS, HTTP, TLS, and TCP once a new log line is created.

At the time of writing, we currently support 3 types of Log Drains:

  • JSON

  • NDJSON

  • Syslog

Along with Log Drains, we are introducing two new open-source integrations with logging services for you to start using them today: LogDNA and Datadog.

Install the integration: https://vercel.com/integrations?category=logging

See the announcement blog post: https://vercel.com/blog/log-drains

Note that Vercel does not allow Docker deployments, but does support Serverless Functions.