RDS General Log does not exist in Cloudwatch

0

I want to find out the connections to all my databases in a database instance and I used the instructions below to enable General log on a RDS MariaDB database instance:

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.MySQLDB.PublishtoCloudWatchLogs.html

Unfortunately, I am not able to find the general log under log group in CloudWatch. I can see a General (hyperlink) on the RDS database instance: RDS->Configure->Published Logs->Cloudwatch logs. When I clicked on the hyperlink, CloudWatch was opened but displayed an error: There was an error filtering log events. The specified log group does not exist. I have set general_log to 1 on RDS->Parameter Groups, and enabled the check box for General Log for the DB Instance (Modify->Log export)

And also, will I be able to stop the General logging afterwards? What is the performance impact on the database when General Loggin is turned on? What is the performance impact on the database when Audit Logging is turned on?

profile picture
Lottie
질문됨 6달 전433회 조회
1개 답변
1
수락된 답변

Hello.

There is a parameter called "log_output" in the parameter group, so try changing its setting value to "FILE".
By changing this value to "FILE" you should be able to output to CloudWatch Logs.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.Concepts.MariaDB.html

And also, will I be able to stop the General logging afterwards?

Yes, you can stop it later.
If you want to stop it, follow the steps in the reverse order of the output settings.

profile picture
전문가
답변함 6달 전
profile picture
전문가
검토됨 2달 전

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

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

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

관련 콘텐츠