> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-postgresql-instance-with-log-checkpoints-database-flag-is-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP PostgreSQL instance with log\_checkpoints database flag is disabled

### Synopsis

| Field               | Value                                                                   |
| ------------------- | ----------------------------------------------------------------------- |
| Rule Type           | Detection                                                               |
| Finding Type        | GCP PostgreSQL instance with log\_checkpoints database flag is disabled |
| Finding ID          | 60000415                                                                |
| Generates a Finding | This detection rule also generates a finding                            |
| Severity            | Informational                                                           |
| Category            | CONFIGURATION                                                           |
| Cloud Providers     | GCP                                                                     |
| Platform Module     | CSPM                                                                    |
| Asset Types         | GOOGLE\_CLOUD\_SQL\_DB\_INSTANCE                                        |

### Description

Disabling the `log_checkpoints` flag on Google Cloud Platform (GCP) PostgreSQL instances poses a significant security risk by hindering the ability to track and analyze database activity. This prevents effective monitoring and troubleshooting, potentially masking malicious actions.

The `log_checkpoints` flag within the PostgreSQL database configuration controls the logging of checkpoint and restart point information. Disabling this setting prevents the recording of crucial database events, making it difficult to reconstruct the database's state during failures or security incidents. Attackers could exploit this lack of logging to cover their tracks, making incident response and forensic analysis significantly more challenging.

Without proper checkpoint logging, identifying and recovering from data corruption or unauthorized modifications becomes substantially more complex. Comprehensive logging is crucial for auditing, compliance, and ensuring the integrity and availability of the database. Maintaining complete logs allows for faster identification and remediation of security issues and facilitates effective disaster recovery.

To mitigate this misconfiguration, ensure the `log_checkpoints` flag is enabled on all GCP PostgreSQL instances. Regularly review database logs for suspicious activity. Implement robust monitoring and alerting to detect unusual database behavior. Consider implementing a centralized logging solution for easier analysis and management of logs across multiple instances.

### Remediation

1. Login to GCP Console
2. Navigate to SQL
3. Select the PostgreSQL instance for which you want to enable the database flag from the list
4. Click 'Edit'

   NOTE: If the instance is stopped, You need to START instance first to edit the configurations, then Click on EDIT.
5. Go to the 'Flags' section under 'Configuration options'
6. Click 'Add item', choose the flag 'log\_checkpoints' from the drop-down menu and set the value to 'on'

   OR

   If 'log\_checkpoints' database flag is already set to 'off', from the drop-down menu set the value to 'on'
7. Click on 'Save'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-postgresql-instance-with-log-checkpoints-database-flag-is-disabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
