See Log Status Through Webhook

Hello, I want to know that through webhook how to see or track the log status If no then please suggest some way to achieve it
13 Replies
Percy
Percy12mo ago
Project ID: N/A
Brody
Brody12mo ago
what would you describe a log status to be? I've not really heard that term before
shoppealtech00
shoppealtech00OP12mo ago
Deployment logs
Brody
Brody12mo ago
railway does not have a log drain, you would need to subscribe to the deployment logs via their public api https://docs.railway.app/reference/public-api https://docs.railway.app/guides/public-api this is linked in those docs pages too, but you can explore their graphql api through the playground https://railway.app/graphiql you want the deploymentLogs subscription
shoppealtech00
shoppealtech00OP12mo ago
Thanks!
Brody
Brody12mo ago
no problem!
shoppealtech00
shoppealtech00OP12mo ago
Is there any way I can get whole data by passing query? what will be query for this ?
Brody
Brody12mo ago
it's the same name for the query as it is for the subscription please look through the playground but would you mind sharing your usecase?
shoppealtech00
shoppealtech00OP12mo ago
I want to print build logs and and deployment logs form it from*
Brody
Brody12mo ago
well of course that's a given, but more specifically? (you can edit discord messages when you make a typo)
shoppealtech00
shoppealtech00OP12mo ago
Through Webhook I need to show in google chat space those crashed and success status
Brody
Brody12mo ago
sorry but as previously mentioned railway does not provide log drains for this usecase you would definitely need to subscribe to the logs via their api you want to do a subscription not a query, a subscription will get you a real-time stream of the logs that you subscribe to
shoppealtech00
shoppealtech00OP12mo ago
Okay thanks
Want results from more Discord servers?
Add your server