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