Syslog format is not correct

Hello Render community.
I’ve been trying to forward the logs from Render to a log platform, logtail in this case, and I’m might be misunderstanding some things.

From the documentation I see that it’s expected that my service outputs logs to stdout using the syslog format RFC 5424 - The Syslog Protocol. Comparing the log from the docs and the one I’m producing we can see:

Log entry from the documentation:

<0>1 2021-03-31T16:00:00-08:00 test-service cron-12345 74440 cron-12345 - hello this is a test

Log entry from my service (I’ve checked in the Render logs page):

<0>1 2022-07-17T01:06:09Z devgym devgym 74440 devgym - collector message

The problem is that Render is using my whole log message in the sys log message section. Generating something like

<0>1 2021-03-31T16:00:00-08:00 test-service cron-12345 74440 cron-12345 - <0>1 2022-07-17T01:06:09Z devgym devgym 74440 devgym - collector message

Which means that I don’t have control to change the severity or anything else despite the log message. How should I proceed to use syslog properly?

I think this is related to these different issues:

Hi Claudson,

I just reviewed our log stream pipeline and I don’t think we parse log level. It looks like everything is sent at the Alert level. I recognize this is a pretty severe limitation of the log streams feature.

We’ve recently started a project to improve our logging infrastructure and will likely be modifying how log streams work. I’ve created a ticket for this internally so that we can prioritize this work alongside the other logging changes we need to make.

Please let me know if there’s anything else I can answer for you in the meantime.

Best,
Adrian

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.