Skip to content

Commit d6cc890

Browse files
Update doc to add logging bucket as sink destination (#4176) (#2695)
* logging bucket destination added to sink resource docs * updated doc to cloud logging bucket as sink destination Signed-off-by: Modular Magician <[email protected]>
1 parent 05b8a19 commit d6cc890

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

.changelog/4176.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:none
2+
docs updated to add logging bucket as sink destination
3+
4+
```

website/docs/r/logging_billing_account_sink.html.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ The following arguments are supported:
5151
* `billing_account` - (Required) The billing account exported to the sink.
5252

5353
* `destination` - (Required) The destination of the sink (or, in other words, where logs are written to). Can be a
54-
Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
54+
Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
5555
```
5656
"storage.googleapis.com/[GCS_BUCKET]"
5757
"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
5858
"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
59+
"logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]"
5960
```
6061
The writer associated with the sink must have access to write to the above resource.
6162

website/docs/r/logging_folder_sink.html.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "google_logging_folder_sink" "my-sink" {
2727
destination = "storage.googleapis.com/${google_storage_bucket.log-bucket.name}"
2828
2929
# Log all WARN or higher severity messages relating to instances
30-
filter = "resource.type = gce_instance AND severity >= WARN"
30+
filter = "resource.type = gce_instance AND severity >= WARNING"
3131
}
3232
3333
resource "google_storage_bucket" "log-bucket" {
@@ -58,11 +58,12 @@ The following arguments are supported:
5858
accepted.
5959

6060
* `destination` - (Required) The destination of the sink (or, in other words, where logs are written to). Can be a
61-
Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
61+
Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
6262
```
6363
"storage.googleapis.com/[GCS_BUCKET]"
6464
"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
6565
"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
66+
"logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]"
6667
```
6768
The writer associated with the sink must have access to write to the above resource.
6869

website/docs/r/logging_organization_sink.html.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "google_logging_organization_sink" "my-sink" {
2727
destination = "storage.googleapis.com/${google_storage_bucket.log-bucket.name}"
2828
2929
# Log all WARN or higher severity messages relating to instances
30-
filter = "resource.type = gce_instance AND severity >= WARN"
30+
filter = "resource.type = gce_instance AND severity >= WARNING"
3131
}
3232
3333
resource "google_storage_bucket" "log-bucket" {
@@ -50,11 +50,12 @@ The following arguments are supported:
5050
* `org_id` - (Required) The numeric ID of the organization to be exported to the sink.
5151

5252
* `destination` - (Required) The destination of the sink (or, in other words, where logs are written to). Can be a
53-
Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
53+
Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket. Examples:
5454
```
5555
"storage.googleapis.com/[GCS_BUCKET]"
5656
"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
5757
"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
58+
"logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]"
5859
```
5960
The writer associated with the sink must have access to write to the above resource.
6061

website/docs/r/logging_project_sink.html.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "google_logging_project_sink" "my-sink" {
2929
destination = "pubsub.googleapis.com/projects/my-project/topics/instance-activity"
3030
3131
# Log all WARN or higher severity messages relating to instances
32-
filter = "resource.type = gce_instance AND severity >= WARN"
32+
filter = "resource.type = gce_instance AND severity >= WARNING"
3333
3434
# Use a unique writer (creates a unique service account used for writing)
3535
unique_writer_identity = true
@@ -117,11 +117,12 @@ The following arguments are supported:
117117
* `name` - (Required) The name of the logging sink.
118118

119119
* `destination` - (Required) The destination of the sink (or, in other words, where logs are written to). Can be a
120-
Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples:
120+
Cloud Storage bucket, a PubSub topic, a BigQuery dataset or a Cloud Logging bucket . Examples:
121121
```
122122
"storage.googleapis.com/[GCS_BUCKET]"
123123
"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
124124
"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
125+
"logging.googleapis.com/projects/[PROJECT_ID]]/locations/global/buckets/[BUCKET_ID]"
125126
```
126127
The writer associated with the sink must have access to write to the above resource.
127128

0 commit comments

Comments
 (0)