Question

Can I access database (mysql) logs?

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?

Subscribe
Share

Submit an 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.

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.

@KFSys Unacceptable. We should have access to full db logs or at least a way to tail them. Fix it asap.

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