# \#matchesphrase

**URL:** https://community.dynatrace.com/tag/matchesphrase/1006.md

[Latest](https://community.dynatrace.com/latest.md) · [Categories](https://community.dynatrace.com/categories.md) · [Tags](https://community.dynatrace.com/tags.md)

---

## [Why is wildcard required in DQL matchesPhrase with host.name?](https://community.dynatrace.com/t/why-is-wildcard-required-in-dql-matchesphrase-with-host-name/44156)

<div class="topic-metadata">

**Author:** [@GerryIsHere](https://community.dynatrace.com/u/GerryIsHere)\
**Replies:** 5\
**Last updated:** [February 15, 2024, 10:01pm UTC](https://community.dynatrace.com/t/why-is-wildcard-required-in-dql-matchesphrase-with-host-name/44156 "2024-02-15T22:01:21Z")

</div>

This fails: fetch logs | filter matchesPhrase(host.name, “carn”) // fail and matchesPhrase(log.source, “rmwfeapi”) and matchesPhrase(content, “Unable”) | fieldsKeep timestamp, host.name, content, log.source This wo…
