- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
By enabling the log_connections
setting, every attempted server connection is logged along with the successful completion of client authentication. Once the session starts, you cannot change this parameter.
By default, PostgreSQL does not log attempted connections. By enabling the log_connections
setting, you can create log entries for every attempted connection as well as the successful completion of client authentication. This can be useful in troubleshooting issues and determining any unusual connection attempts to the server. This recommendation is applicable to PostgreSQL database instances.
By turning on logging, the required storage increaess over time. Mismanaged logs may cause your storage costs to increase.
Setting custom flags through the command line on certain instances can cause all omitted flags to reset to defaults. This may cause you to lose custom flags and can result in unforeseen complications or instance restarts. Because of this, Datadog recommends applying these flag changes during a period of low usage.
Configure the log_connections
database flag for every Cloud SQL PosgreSQL database instance using the following command:
gcloud sql instances patch <INSTANCE_NAME> --database-flags
log_connections=on
This command overwrites all previously set database flags. To keep these flags and add new ones, include all flag values to be set on the instance. Otherwise, flags that are not specifically included are set to its default value. For flags that do not take a value, specify the flag name followed by an equals sign, for example: =
.
You do not need to restart the Cloud SQL instance.
By default, log_connections
is off.
This patch modifies database flag values, which may require you to restart your instance. Check the list of supported flags to see if your instance will restart when this patch is submitted.
Some database flag settings can affect instance availability or stability, and may remove the instance from the Cloud SQL SLA.
For information about these flags, see the Operational Guidelines.
Version 8, 8.5 - Collect Detailed Audit Logs