# matchesPhrase not working as expected

**URL:** <https://community.dynatrace.com/t/matchesphrase-not-working-as-expected/55633>\
**Category:** Logs\
**Tags:** log-configuration, logs\
**Created:** [April 20, 2026, 7:49pm UTC](https://community.dynatrace.com/t/matchesphrase-not-working-as-expected/55633 "2026-04-20T19:49:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![susmita\_k](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@susmita\_k](https://community.dynatrace.com/u/susmita_k)\
**Post date:** [April 20, 2026, 7:49pm UTC](https://community.dynatrace.com/t/matchesphrase-not-working-as-expected/55633/1 "2026-04-20T19:49:01Z")

</div>

I have a routing rule as matchesPhrase(aws.log\_group, “123456”)

It picks up the log group with name&nbsp;/aws/lambda/test-123456-cit1-test1

but it does not pick up this one&nbsp;batch-job-123456-cit1-jd

Any pointer why this is happening like this ? Thanks in advance

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [April 20, 2026, 11:35pm UTC](https://community.dynatrace.com/t/matchesphrase-not-working-as-expected/55633/2 "2026-04-20T23:35:55Z")

</div>

hello&nbsp;[@susmita\_k](https://community.dynatrace.com/user/67050)&nbsp;to be able to help you, can you share with us the full command you are using. thanks
