cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bucket assignment question with matchesvalue

dynatrace_curio
Frequent Guest

Hello everybody,

 I'm using Monaco with Dynatrace. I'm trying to configure the bucket  to extend the log retention period for ONLY all k8s located in a management zone.

I know that I can use in the Matcher field this command matchesValue(managementzone, "management_zone_name").

Or I can list all k8s with matchesvalue matchesValue(k8s.namespace.name, \"k8_name\") but I'm planning to create or remove regularly a k8s. I don't want to change each time the Matcher Field. 

But this command includes all components in the management zone but I'm interested about the k8s.

Do you know some commands that I can use in the Matcher field to get the list of all k8s in a specific management zone?

Thank you very much in advance.

1 REPLY 1

marco_irmer
Champion

Perhaps the matcher could be updated with a second condition to only match log events that carry the k8s.namespace.name field.

matchesValue(managementzone, "management_zone_name") and isNotNull(k8s.namespace.name)

Featured Posts