Quick question about an odd behavior we’re noticing when using New Relic Logs—while we’re sending properly-formatted JSON structured logs, those somehow aren’t automatically parsed by New Relic, despite what the official documentation states. Our setup is the following: we have a Rails 6 app hosted on Heroku. The logs are forwarded to New Relic via a Syslog drain, and they’re formatted by our app using both the Lograge gem and the New Relic Agent via the dedicated formatter.
Everything seems to work fine up until the logs actually reach New Relic—here’s how they’re received:
As you can see, the JSON payload is treated as a string and not parsed, even though it’s perfectly valid and within the character limit. Can you advise? I’d rather avoid setting up complex Grok rules to parse it myself if I can avoid it.