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 Answers
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
EXPERT
answered 3 months ago
profile picture
EXPERT
reviewed 3 months ago
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
answered 3 months ago
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
answered 3 months ago
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

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions