If the sidecar has been configured to use Cloudwatch for Log Integration, the query logs can be found in AWS Cloudwatch, under log group. You can search for the name of the sidecar and click on it. The query logs will appear in the wire log of the database type for the repo that is bound to the sidecar.