Skip to content

Commit

Permalink
Logging bucket index_configs documentation fixes (#11048)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuck authored Jun 27, 2024
1 parent 6898281 commit 536bda8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ resource "google_logging_billing_account_bucket_config" "example-billing-account
retention_days = 30
bucket_id = "_Default"
index_configs = {
file_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
index_configs {
field_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
}
}
```
Expand All @@ -62,7 +62,7 @@ The following arguments are supported:
<a name="nested_index_configs"></a>The `index_configs` block supports:

* `field_path` - The LogEntry field path to index.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation]( https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) for details.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation](https://cloud.google.com/logging/docs/analyze/custom-index) for details.

* `type` - The type of data in this index. Allowed types include `INDEX_TYPE_UNSPECIFIED`, `INDEX_TYPE_STRING` and `INDEX_TYPE_INTEGER`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ resource "google_logging_folder_bucket_config" "basic" {
retention_days = 30
bucket_id = "_Default"
index_configs = {
file_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
index_configs {
field_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
}
}
```
Expand All @@ -52,7 +52,7 @@ The following arguments are supported:
<a name="nested_index_configs"></a>The `index_configs` block supports:

* `field_path` - The LogEntry field path to index.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation]( https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) for details.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation](https://cloud.google.com/logging/docs/analyze/custom-index) for details.

* `type` - The type of data in this index. Allowed types include `INDEX_TYPE_UNSPECIFIED`, `INDEX_TYPE_STRING` and `INDEX_TYPE_INTEGER`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ resource "google_logging_organization_bucket_config" "basic" {
retention_days = 30
bucket_id = "_Default"
index_configs = {
file_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
index_configs {
field_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
}
}
```
Expand All @@ -51,7 +51,7 @@ The following arguments are supported:
<a name="nested_index_configs"></a>The `index_configs` block supports:

* `field_path` - The LogEntry field path to index.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation]( https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) for details.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation](https://cloud.google.com/logging/docs/analyze/custom-index) for details.

* `type` - The type of data in this index. Allowed types include `INDEX_TYPE_UNSPECIFIED`, `INDEX_TYPE_STRING` and `INDEX_TYPE_INTEGER`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ resource "google_logging_project_bucket_config" "example-project-bucket-index-co
retention_days = 30
bucket_id = "custom-bucket"
index_configs = {
file_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
index_configs {
field_path = "jsonPayload.request.status"
type = "INDEX_TYPE_STRING"
}
}
```
Expand Down Expand Up @@ -156,7 +156,7 @@ See [Enabling CMEK for Logging Buckets](https://cloud.google.com/logging/docs/ro
<a name="nested_index_configs"></a>The `index_configs` block supports:

* `field_path` - The LogEntry field path to index.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation]( https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) for details.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See [indexing documentation](https://cloud.google.com/logging/docs/analyze/custom-index) for details.

* `type` - The type of data in this index. Allowed types include `INDEX_TYPE_UNSPECIFIED`, `INDEX_TYPE_STRING` and `INDEX_TYPE_INTEGER`.

Expand Down

0 comments on commit 536bda8

Please sign in to comment.