By Yakin
Hi everyone,
I’ve already enabled the slow query log on my digital ocean managed database, but I’m not sure where to access or download the logs.
Specifically:
Any guidance would be greatly appreciated. Thanks!
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!
On DigitalOcean Managed Databases, you cannot directly access or download the slow query logs as a file. You must use a log forwarding integration, such as Datadog, to view and manage your database logs. DigitalOcean made this update in June 2024 to centralize log management for its managed databases.
Where to view your logs DigitalOcean’s Managed Databases now support log forwarding to third-party providers like Datadog.
Access via CLI or API
DigitalOcean also provides API-driven log forwarding, which allows you to programmatically configure log destinations for your managed database logs. You can also use doctl
, the official DigitalOcean CLI, to interact with the API, but this is used for setting up the log forwarding, not for retrieving the logs directly.
Why direct file access is not an option Managed services like DigitalOcean’s Databases abstract away the underlying infrastructure. This means you do not have direct access to the file system where the database logs are stored, unlike with a self-hosted Droplet. For security, simplicity, and performance, DigitalOcean manages this aspect and provides more robust and integrated logging solutions.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.