Will enabling slow query logging require RDS instance reboot?

0

Hello everyone,

I have question concerning slow query logging. Right now, in our RDS instance we do have error logging enabled but not slow query logging. I saw, only that this enabled by setting slow_query_log to 1. Is this equivalent to selecting in the modify section, under the log exports the "Slow query log" because in this case, if I am not mistaken, the db instance it is rebooted.

Thank you in advance!

Miltos

已提问 4 个月前317 查看次数
4 回答
1

Hello.

There is no need to restart RDS if the only setting is to output slow query logs.
a

If you want to output to CloudWatch Logs, you need to check Slow Query from the RDS changes section to reflect the changes.
According to the documentation, there doesn't seem to be any downtime, but we recommend that you try it in a verification environment before making any changes to your production environment.
b

profile picture
专家
已回答 4 个月前
profile picture
专家
已审核 4 个月前
1

Hi,

slow_query_log is a dynamic parameter. You can change it without rebooting the instance. But you need a DB reboot, if you are currently using default parameter group, you need to create a new parameter group with the slow_query_log parameter set to 1 and assign the parameter group and DB instance reboot is required.

Joseph
已回答 4 个月前
1

Just adding my test results, even modifying the instance with a new custom parameter group with slow_query_log = 1 (dynamic) did not reboot the instance. It is nice! Enter image description here

Joseph
已回答 4 个月前
0

Thank you a lot. You are right It was tested and indeed setting the value to 1 in the existing custom parameter group and enabling the export to cloudwatch from the modify section. Did not require reboot of the RDS instance

已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则