a month ago
I migrated my project from Laravel Forge to Railway, but with the same configuration, I couldn't send logs to Papertrail (now SolarWinds Observability).
Since the default logger for Papertrail uses UDP to send logs, I wondered if something might be blocking outbound UDP connections. I also configured the stack to log on 'errorlog' as per documentation, but I only see logs in the app/storage/logs directory, the observability window seem to show only some, but for example, the command execution logs (that run via Cron Service) isn't appearing there.
I even tried generating logs through artisan tinker, but they only appeared in the /logs folder and still didn't show in Papertrail or the Observability windows.
3 Replies
a month ago
Hello,
We do not block outbound UDP.
This would be an issue with your application and or configuration.
Since we cannot assist with application or configuration level issues I will open this thread up to the community to help you.
Best,
Brody
Status changed to Awaiting User Response Railway • about 1 month ago
brody
Hello,We do not block outbound UDP.This would be an issue with your application and or configuration.Since we cannot assist with application or configuration level issues I will open this thread up to the community to help you.Best,Brody
a month ago
I think that the problem could be missing the sockets extension in php in the container, i'm still investigating
Update: it's confirmed, I had to add RAILPACK_PHP_EXTENSIONS=sockets as an environment variable to all three services and now it's working (at least papertrail, same papertrail logs did not show up in the Observability window).
Status changed to Open itsrems • about 1 month ago
a month ago
Amazing, glad to hear you got this working! Feel free to reopen the ticket if you run into any issue.
Status changed to Solved itsrems • about 1 month ago