Hi there,
We have a couple of worker processes running (RabbitMQ consumers). How might we get a log drain from them?
Thanks!
Logan
Hi there,
We have a couple of worker processes running (RabbitMQ consumers). How might we get a log drain from them?
Thanks!
Logan
Hi there,
There are two ways to do this:
aptible logs --app $APP_HANDLE
. This will stream the logs from your app in real-time to your terminal.There’s more information here if you’d like.
Let me know if you have any questions!
Hey Thomas,
Thanks for the response! So both of these options will just combine all logging output from any service in the app (ie, the web service and a couple of other distinct worker services running in different containers)?
Logan
Yes, that’s correct: all logging output will be captured. In all cases, there is metadata on the log records showing which service they’re coming from, though:
service
attribute on log records (the log record itself is found in the log
attribute).Cheers,