R
Railway6mo ago
adeg

how to export all the logs showing on the dashboard?

I wrote some filter for the logs and it returned but the line of the log is too long, so it only showed part of it. how to export all the full log with my filter?
29 Replies
Percy
Percy6mo ago
Project ID: b51e42c0-8a37-4633-8e1d-8f14fc187052
adeg
adeg6mo ago
b51e42c0-8a37-4633-8e1d-8f14fc187052
Brody
Brody6mo ago
theres this, but it doesnt use the filter https://bookmarklets.up.railway.app/log-downloader/
adeg
adeg6mo ago
what to do if I removed my service?
Brody
Brody6mo ago
then your logs are gone
adeg
adeg6mo ago
I can still search it in the observability
Brody
Brody6mo ago
fair enough
adeg
adeg6mo ago
can't that return my logs?
Brody
Brody6mo ago
no it only works with deployment and build logs from within a service
adeg
adeg6mo ago
I mean, in observability each line of my log is too long, observability only shows a chunk of it, how to make it show the full log?
Brody
Brody6mo ago
enable line wrapping?
adeg
adeg6mo ago
it doesn't work, I checked the response from the server, even the response doesn't show the full log
Brody
Brody6mo ago
No description
adeg
adeg6mo ago
I know this but it doesn't work
Brody
Brody6mo ago
how long is your log?
adeg
adeg6mo ago
could be 150000 charaters max
Brody
Brody6mo ago
then you probably reached the per line length limit
adeg
adeg6mo ago
do you mind relexing the per line length limit for me? or get the logs for me?
Brody
Brody6mo ago
i dont work for railway
adeg
adeg6mo ago
what should I do?
Brody
Brody6mo ago
well what is the log anyway if you dont mind me asking
adeg
adeg6mo ago
users are transferring their assets, we lost our db due to some unknown reason. we trying to recover the data. log records the the transfer activities. In the log, I print the assets and id of the transfer, but assets string could be very long like over 100,000, I print the id at the last of the line... so I won't be able to see it I'm trying to get the id of the transfer that is saved in the logs from the id, I can recover the transfer...
Brody
Brody6mo ago
if railway has a log line size limit it would be super likely for them to only keep the log line up to the set size, so theres a good change you wont be able to get those logs back in their entirety last hope would be to check the messages in the logs websocket
adeg
adeg6mo ago
I did it doesn't have it
Brody
Brody6mo ago
doesnt have the log, or doesnt have the full log?
adeg
adeg6mo ago
doesnt have the full log
Brody
Brody6mo ago
if the api doesnt have the log then its super unlikely for their database to have the log, like i said if they have a limit it would only make sence for them to store the log line up to the limit
adeg
adeg6mo ago
I hope that they would have...
Brody
Brody6mo ago
well you are pro, so you can email them to ask