App platform log forwarding to logtail level

I’m forwarding my logs from app platform to logtail. But in logtail all the logs are always of level ‘info’. So also the error logs are level info.

In digitalocean logs you see this (text ‘error’ is in red):

error: GET /v1 404 - 1.469 ms - message: Not found

And in logtail you see this (everything except ‘[INFO]’ is in red):

[INFO] error: GET /v1 404 - 1.469 ms - message: Not found

So now I can’t filter the logs in logtail based on the level. How can I fix this?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have the same issue than @ricardodol. All logs level are info, while i’m sending errors as well.

My stack is a Vapor (swift) application, running in a container image (Docker).

Hi there,

I’ve just tested this with a demo app that I have and it seems to be working on when the source in Logtail is set to RSyslog. That way Logtail should be able to parse the log information correctly.

However this might depend on your application, what is the stack that you are using?

Let me know how it goes.



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up