You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,6 +64,7 @@ so that all dependencies are met.
63
64
| exclusions | (Optional) A list of sink exclusion filters. | <pre>list(object({<br> name = string,<br> description = string,<br> filter = string,<br> disabled = bool<br> }))</pre> |`[]`| no |
64
65
| filter | The filter to apply when exporting logs. Only log entries that match the filter are exported. Default is '' which exports all logs. |`string`|`""`| no |
65
66
| include\_children | Only valid if 'organization' or 'folder' is chosen as var.parent\_resource.type. Determines whether or not to include children organizations/folders in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided organization/folder are included. |`bool`|`false`| no |
67
+
| intercept\_children | Only valid if 'organization' or 'folder' is chosen as var.parent\_resource.type. Whether or not to intercept logs from child projects. If true, matching logs will not match with sinks in child resources, except \_Required sinks. This sink will be visible to child resources when listing sinks. |`bool`|`false`| no |
66
68
| log\_sink\_name | The name of the log sink to be created. |`string`| n/a | yes |
67
69
| parent\_resource\_id | The ID of the GCP resource in which you create the log sink. If var.parent\_resource\_type is set to 'project', then this is the Project ID (and etc). |`string`| n/a | yes |
68
70
| parent\_resource\_type | The GCP resource in which you create the log sink. The value must not be computed, and must be one of the following: 'project', 'folder', 'billing\_account', or 'organization'. |`string`|`"project"`| no |
The v10.0 release of Log Export is a backwards incompatible release and features a new feature `intercept_children` for folder and oraganization logging sinks. Minimum provider version `5.27` ia required.
Copy file name to clipboardExpand all lines: variables.tf
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,12 @@ variable "include_children" {
31
31
default=false
32
32
}
33
33
34
+
variable"intercept_children" {
35
+
description="Only valid if 'organization' or 'folder' is chosen as var.parent_resource.type. Whether or not to intercept logs from child projects. If true, matching logs will not match with sinks in child resources, except _Required sinks. This sink will be visible to child resources when listing sinks."
36
+
type=bool
37
+
default=false
38
+
}
39
+
34
40
variable"log_sink_name" {
35
41
description="The name of the log sink to be created."
0 commit comments