Report this

What is the reason for this report?

Custom log format for DO App Platform

Posted on November 20, 2024

I have a django DRF application where I have defined a custom log formamtter in JSON format for easy filtering of data.

I can see the logs getting generated in this format on the DO console. However, the logs are not getting synced to Logtail.

I am not sure if there is an issue with the setup or some configuration. Do we have some resources on how to accomplish this?



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!

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.

Hey,

This is quite interesting, was the log forwarding to Logtail working before you made the log format change? It sounds like that it might be an issue with the way the Logtail forwarding is configured rather than the format itself.

Can you confirm that you’ve followed all of the steps from the Logtail docs here:

https://betterstack.com/docs/logs/digital-ocean-apps/

If you’ve done all that all that already and the log forwarding was working before changing the format, it might be worth reaching out to the DigitalOcean support team who might be able to further investigate this for you:

https://www.digitalocean.com/support/

- Bobby.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.