How can I download HTTP logs via CLI?
kthumin-work
PROOP

11 days ago

I'm trying to download/export HTTP logs from my Railway service, but I can't find any option to do this from the web console.

Is there a way to retrieve or download HTTP request logs using the Railway CLI?

My use case is to perform offline analysis, so I'm looking for either:

A CLI command to export logs to a file

An API endpoint that provides access to HTTP logs

Any recommended approach for downloading historical HTTP logs

I found ways to view logs in the dashboard, but I haven't found documentation on exporting or downloading them.

Solved

1 Replies

Railway
BOT

11 days ago

The railway logs CLI command supports fetching deployment logs (stdout/stderr) with --json output and time-range flags like --since and --until, which you can redirect to a file, but it does not cover HTTP request logs. HTTP logs are currently only viewable in the dashboard under the HTTP Logs tab within each deployment. For offline analysis of HTTP traffic, the recommended approach is to forward logs to a third-party observability tool (Vector, Fluent Bit, or an OpenTelemetry SDK) as described in the third-party observability guide. On the Pro plan your logs are retained for 30 days.


Status changed to Awaiting User Response Railway 11 days ago


Railway
BOT

4 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...