# Keep fields with a prefix

**URL:** <https://community.dynatrace.com/t/keep-fields-with-a-prefix/39995>\
**Category:** DQL\
**Tags:** dql\
**Created:** [May 31, 2023, 1:41pm UTC](https://community.dynatrace.com/t/keep-fields-with-a-prefix/39995 "2023-05-31T13:41:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [May 31, 2023, 1:41pm UTC](https://community.dynatrace.com/t/keep-fields-with-a-prefix/39995/1 "2023-05-31T13:41:15Z")

</div>

Is there a possibility to keep fields that start with a specific string?E.g. in my case I want to keep all fields that start with&nbsp;`behavioral.`&nbsp;and remove the remaining fields?

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [May 31, 2023, 2:29pm UTC](https://community.dynatrace.com/t/keep-fields-with-a-prefix/39995/2 "2023-05-31T14:29:41Z")

</div>

Hi Stefan,

yes, you can use the feeldsKeep command like this:  
`| fieldsKeep "behavioral.*"`

Best,  
Sini
