Skip to content
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

dynatrace_log_sensitive_data_masking (Resource) matcher ending with wrong attribute. #453

Closed
DylanYost opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DylanYost
Copy link

Describe the bug
When using terraform to create a dynatrace_log_sensitive_data_masking (Resource), the resource is created using the log source attribute regardless of the attribute specified (e.g. K8s_deployment_name).

To Reproduce

  1. Create dynatrace_log_sensitive_data_masking (Resource) in terraform
  2. specify the matcher attribute as anything other than log_source

Expected behavior
The expected behavior is having a dynatrace_log_sensitive_data_masking (Resource) rule using a K8s Deployment Name as the attribute instead of log source.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@DylanYost DylanYost added the bug Something isn't working label Apr 30, 2024
@Dynatrace-Reinhard-Pilz
Copy link
Member

Hello @DylanYost,

The documentation for this resource is listing invalid values for matcher attributes. Apparently the REST API DOES accept any value here without complaining - it just falls back to log.source as a default value in such a case.
The docs will be updated with the upcoming release. Until then here's a list of valid matcher attributes for you:

  • container.name
  • dt.entity.container_group
  • dt.entity.process_group
  • k8s.container.name
  • k8s.deployment.name
  • k8s.namespace.name
  • log.source
  • process.technology
  • host.tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants