DPL is only for extraction, not for adapting the string itself. You need to compare it to regular expressions. This means that if you want to do more than just matching/searching and extracting a string, you will need a DQL statement.
A solution with DPL could be:
DATA record(host.name="dappdevgw-001.phx.ad.company.com", message= "this is a test message 1"),<br>record(host.name="pappdevgw-006.phx.ad.company.com", message= "this is a test message 2"),<br>record(host.name="bappdevgw-007.phx.ad.company.com", message= "this is a test message 3")<br>| parse `host.name`, """DATA?<br>(DATA{1}<br>'appdevgw-'<br>DATA{3}):HostName<br>DATA"""<br>| fieldsAdd HostName = upper(HostName)