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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Description
I'm not sure if this is a recently-added feature but in Cloud Logging when you save a query you have the option to "share with project". This corresponds to setting {{visibility: SHARED}} in the SavedQuery resource
I'm in a platform team – we have 100+ engineering teams with GCP projects we've provisioned for them, and it'd be useful for us to provision some standard shared queries into their projects through our Terraform configuration.
It probably wouldn't make sense to provision a non-shared query through Terraform, so you might set that by default.
New or Affected Resource(s)
google_logging_project_saved_query
Potential Terraform Configuration
resource"google_logging_project_saved_query""app_errors" {
display_name="Kubernetes Job logs"description="Only Job logs from your Kubernetes namespace"logging_query {
filter=<<EOFresource.type=k8s_container-resource.labels.container_name="istio-proxy"-resource.labels.container_name=istio-validation"EOF
}
summary_fields=[
"labels/\"k8s-pod/job-name\""# awkward quoting here
]
}
References
No response
The text was updated successfully, but these errors were encountered:
Community Note
Description
I'm not sure if this is a recently-added feature but in Cloud Logging when you save a query you have the option to "share with project". This corresponds to setting {{visibility: SHARED}} in the SavedQuery resource
I'm in a platform team – we have 100+ engineering teams with GCP projects we've provisioned for them, and it'd be useful for us to provision some standard shared queries into their projects through our Terraform configuration.
It probably wouldn't make sense to provision a non-shared query through Terraform, so you might set that by default.
New or Affected Resource(s)
Potential Terraform Configuration
References
No response
The text was updated successfully, but these errors were encountered: