-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add exclusions #74
Comments
Hi @kenmoore25 |
@bharathkkb - I was trying to best understand how the exclusions block works on the project vs just on the log sink as I was reading the documentation. I was trying to understand if they are basically the same thing or if one only impacts the specific log sink. I can give that a try - I've got it working using the standard google_logging_project_sink resource - using the exclusions block. |
@bharathkkb - After a little trial, I think they actually do work differently. I cannot find the place where it actually displays my log exclusions on the project, except through the API (tried the UI and via gcloud command line) Here is the output of the log export with the project exclusion filter: logging.sinks.get logging.exclusions.get Here is the output of the log export with the exclusions block in the google_logging_project_sink resource: { Honestly, I do not know the specific differences between the two, other than it appears that the exclusion block placed on the google_logging_project_sink might only apply to that specific log-sink (which we are pushing through pub/sub) while the other looks like it might be more global - applies at the project level. Appreciate you looking into this. |
Hi @kenmoore25 |
Hey @bharathkkb - appreciate your help looking into this. After trying both the project exclusion and the individual sink exclusion, only the individual exclusion seems to fit what I'm trying to do. We have an aggregated log sink on a folder that includes the children. We have a log sink in each project that will ship logs via pub/sub to splunk (who subscribes). When I try to use the project level exclusion with the aggregated log sink and use the same filters on both, I get duplicate messages in splunk (and obviously paying double via pub/sub). When I use the aggregated with the log exclusion specified on the individual log sink (and I can use the same filters for inclusion on the aggregated sink, inclusion on the specific log sink, and the exclusion filter applied in that same log sink (not via the project logging.exclusion api call), I only get a single log - the one from the aggregated log sink at the folder level. Again...really appreciate your help in looking into this. I honestly think it's another variable on the logging module and exposing the exclusions on the sub-module - hope it's that simple. Also...if we can get our CLA in place, we can try to do the pull request and help out when we things like this that we might be able to help on...sorry... |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
@bharathkkb can you take a look at #103? Or tell me who could? |
Please add exclusions as an input variable and pass it along to the resource.
The exclusion block is already available in resources as seen here:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/logging_project_sink#exclusions
I believe it would just need to be an additional variable and reference it in the resource section of the sub-module
The text was updated successfully, but these errors were encountered: