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