# Bucket assign configuration matcher field question

**URL:** <https://community.dynatrace.com/t/bucket-assign-configuration-matcher-field-question/51468>\
**Category:** Open Q&A\
**Tags:** infrastructure-operations, logs\
**Created:** [May 2, 2025, 8:09pm UTC](https://community.dynatrace.com/t/bucket-assign-configuration-matcher-field-question/51468 "2025-05-02T20:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynatrace\_curio](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@dynatrace\_curio](https://community.dynatrace.com/u/dynatrace_curio)\
**Post date:** [May 2, 2025, 8:09pm UTC](https://community.dynatrace.com/t/bucket-assign-configuration-matcher-field-question/51468/1 "2025-05-02T20:09:00Z")

</div>

Hello everybody,

I’m trying to configure the bucket assignment to extend the log retention period to all kubernetes associated to this&nbsp; following query. Is it possible to fit this query in the matcher field?

fetch dt.entity.cloud\_application\_namespace  
| filter in(id, classicEntitySelector(concat(“type(CLOUD\_APPLICATION\_NAMESPACE),toRelationship.isClusterOfNamespace(type(KUBERNETES\_CLUSTER),entityName.equals(\<Entity\_Name\>))”)))  
| fieldsFlatten cloudApplicationLabels, fields: {`field.cattle.io/projectId`}  
| filter `field.cattle.io/projectId` == “\<project\_ID\_number\>”

Thank you very much

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [May 4, 2025, 4:06am UTC](https://community.dynatrace.com/t/bucket-assign-configuration-matcher-field-question/51468/2 "2025-05-04T04:06:47Z")

</div>

Hi&nbsp;[@dynatrace\_curio](https://community.dynatrace.com/user/87268)&nbsp;  
I haven’t tested that you can apply classicEntitySelector in the DQL Matcher, but I doubt it’s possible.

I haven’t tested whether you can apply classicEntitySelector to the DQL Matcher, but I doubt it’s possible.

I suggest adding a unique log value for the entity (like the Project ID you’re already using) to make it more maintainable over time and easier to understand.

Then continue with what the documentation indicates that it can be done.

 ![PierreGutierrez_0-1746331580314.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/e/beb03a214e99303add839a356e07289cf4cbbbf4.png)

More Info : [DQL matcher in logs — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/lma-log-processing-matcher)
