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
Percy11mo ago
Project ID: N/A
Brody
Brody11mo ago
what would you describe a log status to be? I've not really heard that term before
shoppealtech00
shoppealtech0011mo ago
Deployment logs
Brody
Brody11mo 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
shoppealtech0011mo ago
Thanks!
Brody
Brody11mo ago
no problem!
shoppealtech00
shoppealtech0011mo ago
Is there any way I can get whole data by passing query? what will be query for this ?
Brody
Brody11mo 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
shoppealtech0011mo ago
I want to print build logs and and deployment logs form it from*
Brody
Brody11mo ago
well of course that's a given, but more specifically? (you can edit discord messages when you make a typo)
shoppealtech00
shoppealtech0011mo ago
Through Webhook I need to show in google chat space those crashed and success status
Brody
Brody11mo 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
shoppealtech0011mo ago
Okay thanks
Want results from more Discord servers?
Add your server