8 months ago
Hey!
Is there a way to export logs, similar to Heroku's Logdrain feature?
How do I integrate Railway.app with BetterStacks? Their integration with Heroku was straightforward due to Heroku's Logdrain feature - how do i integrate BetterStacks with Railway.app? (codebase is pure Django monolith)
Thanks!
my email: samkumar@shipblink.com
5 Replies
8 months ago
Hello,
Unfortunately we do not support log drains, something I've personally wanted.
That leaves two options -
Use BetterStack's SDK in code.
Use locomotive - https://railway.app/template/jP9r-f
Status changed to Awaiting User Response railway[bot] • 8 months ago
8 months ago
@brody thanks for the quick response!
#2 locomotive seems like a very smart workaround - I would love to try that out.
I tried following some instructions and created this project using locomotive https://railway.app/project/6ce9c890-5e14-4120-995d-c254bdcf3756
For some reason, it isn't sending logs to BetterStacks neither anything shows up in the project's own "Observability" tab - I'm very likely missing something. Any chance you could help me point to the root cause?
really appreciate your help!
Sam
Status changed to Awaiting Railway Response railway[bot] • 8 months ago
8 months ago
You need to deploy locomotive into the same project as the service you want to ship the logs for.
Status changed to Awaiting User Response railway[bot] • 8 months ago
8 months ago
Ah makes sense. I re-created the service within the original service and it seems to be working. Thanks a ton for your help!
Status changed to Awaiting Railway Response railway[bot] • 8 months ago
Status changed to Awaiting User Response railway[bot] • 8 months ago
Status changed to Solved brody • 8 months ago