Report this

What is the reason for this report?

Can I access database (mysql) logs?

Posted on January 3, 2020

I have a mysql cluster, I can go to the “Logs and Queries” tab and see what I need. But I would like to have access to the logs to associate them with my elasticsearch. Can I access the log files? How are database queries stored as a log file or in the database itself?



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.
0

Hello all,

You can find the logs of your managed database cluster by following these steps:

  • Go to your DigitalOcean Control Panel
  • From the menu on the left, click on “Databases”
  • Then chose your database cluster
  • After that click on “Logs & Queries”
  • In there you can see your logs in real-time

It is not possible to download the logs at the moment, but there is an existing idea for this which you can upvote here:

https://ideas.digitalocean.com/app-framework-services/p/provide-managed-database-logs

Hi @degorych,

Since the database is managed by DigitalOcean it isn’t possible to access the cluster to directly access the logs.

The general_log file can be seen under the “Queries” sub-tab of your database cluster.

It’s being looked at for the future but at this time it’s not possible.

Regards, KDSys

Hi DigitalOcean,

This is really disappointing. Can you then atleast support addition of pgaudit extension. This will definitely push me to AWS :(.

Customers need a proper audit trail.

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.