Runtime Logs storage location/limit.

I would like to know the following:

1- Where the runtime logs are stored. (If it is)

2- I would like to know if the runtime logs are kept in the Ram memory because I am seeing my app increasing the consumption of ram memory.

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.

Site Moderator
Site Moderator badge
April 17, 2023
Accepted Answer

Heya @renanbarbosasilva,

Runtime logs storage:

DigitalOcean App Platform stores logs for each of your app’s components, including services, workers, and jobs. While the logs are not stored in a specific directory within your app, you can access them through the DigitalOcean Control Panel or using the DigitalOcean CLI (doctl).

To view logs in the Control Panel, navigate to your app’s page, then click on the specific component (e.g., service, worker, etc.) for which you’d like to see logs. You’ll find a “Logs” tab that shows the most recent logs for that component.

To access logs using the DigitalOcean CLI, first, make sure you have doctl installed and authenticated. Then, you can run the following command, replacing <app-id> with your app’s ID and <component-name> with the name of the component for which you’d like to view logs:

doctl apps logs <app-id> --component=<component-name>

Runtime logs and RAM memory consumption:

Logs generated by your application should not be kept in your app’s RAM memory by default. The increased RAM consumption you are observing might be due to other factors such as a memory leak or increased workload in your app.

However, if you’ve configured your application to store logs in memory (e.g., using an in-memory datastore like Redis), this could contribute to increased RAM consumption. In this case, you should consider storing logs in an external service or periodically flushing the in-memory datastore to manage memory usage better.

Hope that helps!

Try DigitalOcean for free

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

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel