R
Railway12mo 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
Percy12mo ago
Project ID: b51e42c0-8a37-4633-8e1d-8f14fc187052
adeg
adegOP12mo ago
b51e42c0-8a37-4633-8e1d-8f14fc187052
Brody
Brody12mo ago
theres this, but it doesnt use the filter https://bookmarklets.up.railway.app/log-downloader/
adeg
adegOP12mo ago
what to do if I removed my service?
Brody
Brody12mo ago
then your logs are gone
adeg
adegOP12mo ago
I can still search it in the observability
Brody
Brody12mo ago
fair enough
adeg
adegOP12mo ago
can't that return my logs?
Brody
Brody12mo ago
no it only works with deployment and build logs from within a service
adeg
adegOP12mo 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
Brody12mo ago
enable line wrapping?
adeg
adegOP12mo ago
it doesn't work, I checked the response from the server, even the response doesn't show the full log
Brody
Brody12mo ago
No description
adeg
adegOP12mo ago
I know this but it doesn't work
Brody
Brody12mo ago
how long is your log?
adeg
adegOP12mo ago
could be 150000 charaters max
Brody
Brody12mo ago
then you probably reached the per line length limit
adeg
adegOP12mo ago
do you mind relexing the per line length limit for me? or get the logs for me?
Brody
Brody12mo ago
i dont work for railway
adeg
adegOP12mo ago
what should I do?
Brody
Brody12mo ago
well what is the log anyway if you dont mind me asking
adeg
adegOP12mo 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
Brody12mo 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
adegOP12mo ago
I did it doesn't have it
Brody
Brody12mo ago
doesnt have the log, or doesnt have the full log?
adeg
adegOP12mo ago
doesnt have the full log
Brody
Brody12mo 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
adegOP12mo ago
I hope that they would have...
Brody
Brody12mo ago
well you are pro, so you can email them to ask
Want results from more Discord servers?
Add your server