Hi @jrobt! ![]()
I understand you’re having some trouble with your logs coming through as plaintext instead of parsed JSON. That can definitely make it harder to extract and analyze specific attributes, but no worries—let’s see what we can do to help!
Here are a few things you might want to check out:
- Log Source Selection: Vercel lets you choose which log sources are sent to your log drain. Make sure you’ve selected the ones that best suit your needs, like
static,lambda,edge,build, orexternal. - Log Format: It looks like your logs contain JSON data within the plaintext output. The lines starting with
{"level":...}are valid JSON, but they might be mixed in with other non-JSON lines (like START, END, and REPORT), which could be causing some parsing issues. - Datadog Pipeline: You might want to set up a custom processing pipeline in Datadog to handle these logs more effectively. Since the JSON is valid within the plaintext, you could try using Datadog’s Grok Parser or JSON Parser to pull out the information you need.
- Vercel Configuration: Unfortunately, there’s no built-in option to change the log format on the Vercel side for Datadog integration at the moment.
I hope this helps!