How do we retrieve the log file path(error log, Slow query log and General log) in Google Cloud SQL?

56 views
Skip to first unread message

Sandhya Sriraj

unread,
Jun 5, 2018, 9:03:13 AM6/5/18
to Google Cloud SQL discuss
I am writing an API to fetch the MySQL Log files in Google Cloud SQL. Is there any way to retrieve the log path? I can see that the file names are mysql.err, mysql-general.log and mysql-slow.log from the log viewer interface. Is it possible to change the file path in Google Cloud SQL or is it fixed?

Taher (Cloud Platform Support)

unread,
Jun 6, 2018, 1:54:38 PM6/6/18
to Google Cloud SQL discuss
Hello Sandhya

Thanks for your question. I found that the question was asked in Stackoverflow and it already has e good answer there. Hope that helps.
Reply all
Reply to author
Forward
0 new messages