# rename the result of replaceString

**URL:** <https://community.dynatrace.com/t/rename-the-result-of-replacestring/44335>\
**Category:** DQL\
**Tags:** dql\
**Created:** [February 27, 2024, 6:21pm UTC](https://community.dynatrace.com/t/rename-the-result-of-replacestring/44335 "2024-02-27T18:21:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![GerryIsHere](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerryishere/32/15590_2.png) [@GerryIsHere](https://community.dynatrace.com/u/GerryIsHere)\
**Post date:** [February 27, 2024, 6:21pm UTC](https://community.dynatrace.com/t/rename-the-result-of-replacestring/44335/1 "2024-02-27T18:21:18Z")

</div>

I have this query

fetch logs  
| filter matchesValue(host.name, “dar\*”)  
and matchesPhrase(log.source, “mydomain”)  
and matchesPhrase(log.source, “diagnostic”)  
and matchesValue(status, “ERROR”)  
| fieldsAdd replaceString(content, “\n”, " “)  
| parse replaceString(content, “\n”, " “), “LD 'Message=\”’ LD:message’\”’ LD ‘TransactionId’ LD”  
| fieldsKeep message

See the&nbsp;**parse replaceString(content, “\n”, " ")** part, isn’t that bizarre?

The documentation doesn’t tell me how to rename the result of replaceString and creates that weird field name. How can I give it a meaningful name to use in the **parse**?

thanks!

---

_[View the full topic](https://community.dynatrace.com/t/rename-the-result-of-replacestring/44335)._
