Disable HTTP Logs for specific endpoint
It looks like the HTTP Logs provide a history of a set amount of logs (let's say 100). I set up a load balancer that checks the /health endpoing every 60 seconds, so I see all the GET requests from the load balancer in the HTTP Logs, and they take up the limited history available. I can filter the logs
- @path:/health
but that still only filters out of the available (for example again 100) logs.
Is there a way to not log those HTTP requests at all?Solution:Jump to solution
There is not, the HTTP logs are there to mainly debug connectivity between Railway and your app.
You should do your own HTTP logs that you can corelate with Railway's HTTP logs....
5 Replies
Project ID:
bffee644-ec55-4122-9e19-fee98c401647
Project ID: bffee644-ec55-4122-9e19-fee98c401647
Solution
There is not, the HTTP logs are there to mainly debug connectivity between Railway and your app.
You should do your own HTTP logs that you can corelate with Railway's HTTP logs.
Though we can't keep track of errors, like if our service doesn't answer because of a networking issue, can't log a request we don't get
yes you can! thats the beauty of the request id returned by railway's 502 page!