Filter what Logs you want to Export in GCP
Configure filters for your cloud log sink
-
- On the console, open the export sink for which you wish to create a filter. Click on the export filter and select Convert to advanced filter
- Append the approprirate filters will be exported by this sink, separating each filter specification with an "OR"
| Log Type | Filter to Capture This Log | Notes |
|---|---|---|
| Audit Logs at the Organization Level | organizations/<organization-id>/logs/cloudaudit.googleapis.com | To filter these logs further, append:
|
| Audit Logs at the Project Level | projects/<project-id>/logs/cloudaudit.googleapis.com | To filter these logs futher, append:
|
| VPC Flow Logs | projects/<project-id>/logs/compute.googleapis.com%2Fvpc_flows | |
| Firewall Logs | projects/<project-id>/logs/compute.googleapis.com%2Ffirewall | |
| Syslog | projects/<project-id>/logs/syslog | These logs are delivered via the Stackdriver logging agent |
| Apache Logs | projects/<project-id>/logs/apache |
|
| Nginx Logs | projects/<project-id>/logs/nginx |
|
Need an experienced AWS/GCP/Azure Professional to help out with your Public Cloud Strategy? Set up a time with Anuj Varma.
Leave a Reply