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개 답변
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠