2 years ago
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?
27 Replies
2 years ago
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
2 years ago
this template looks compatible with what datadog expects -
2 years ago
looks like it does work

2 years ago

2 years ago
the datadog specific vars would be -
ADDITIONAL_HEADERS=DD-API-KEY=<dd>
INGEST_URL=https://http-intake.logs.datadoghq.com/api/v2/logs2 years ago
are you having trouble with other vars?
2 years ago
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.."
2 years ago
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?
2 years ago
it hasn't said it sent any
please check, expand the context
2 years ago
im using the uuid
2 years ago
what was the issue?
need to figure out how to supress the "The locomotive is chugging along…" logs
2 years ago
why?
2 years ago
how often would you want them to be printed?
2 years ago
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
2 years ago
thank you 🙂