What is the best way to forward all of my logs from a railway project to datadog?
What is the best way to forward all of my logs from a railway project (python app, redis, postgres, etc) to datadog?
Do you have a way to pull that from your api and push to DD?
24 Replies
Project ID:
N/A
does datadog have an ingest endpoint that accepts json log lines?
Yes, they have a http endpoint that accepts json logs. https://docs.datadoghq.com/api/latest/logs/#send-logs
Datadog Infrastructure and Application Monitoring
Logs
Datadog, the leading service for cloud-scale monitoring.
Solution
this template looks compatible with what datadog expects -
https://railway.app/template/jP9r-f
looks like it does work
What env vars did you set for locomotive?
the datadog specific vars would be -
are you having trouble with other vars?
What other env vars did you set?
besides those two, i set the other two it asks for, the train and the api key
Mine isn't forwarding logs. The locomotive logs are saying "The locomotive is chugging along.."
how many logs does it say its sent?
it hasn't said it sent any. Are you using just the name of the app ie. "MyApp" for TRAIN?
or some UUID?
it hasn't said it sent anyplease check, expand the context im using the uuid
oh nm..i see the logs now!
what was the issue?
need to figure out how to supress the "The locomotive is chugging along..." logs
why?
i was an idiot and had a filter on the DD dashboard
they are way to noisy
how often would you want them to be printed?
like once every 10 mins or never actually
set
REPORT_STATUS_EVERY=10m
Thanks for your help Brody!! You're a life saver. I owe you a drink if you are ever in SF
thank you π