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?


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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