# Which DPL syntax is applicable?

**URL:** <https://community.dynatrace.com/t/which-dpl-syntax-is-applicable/43197>\
**Category:** DQL\
**Tags:** dql, notebooks, dpl, logs\
**Created:** [December 13, 2023, 8:55pm UTC](https://community.dynatrace.com/t/which-dpl-syntax-is-applicable/43197 "2023-12-13T20:55:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WellPP](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@WellPP](https://community.dynatrace.com/u/WellPP)\
**Post date:** [December 13, 2023, 8:55pm UTC](https://community.dynatrace.com/t/which-dpl-syntax-is-applicable/43197/1 "2023-12-13T20:55:48Z")

</div>

I am creating a processing rule through MATCHER:

matchesPhrase(content, “setFinalReturnCustomerState”) AND dt.entity.cloud\_application == “CLOUD\_APPLICATION-”

I get the log line that has the content:

{  
“@timestamp”: “2023-12-13T20:06:07.833+00:00”,  
“level”: “INFO”,  
“severity”: “INFO”,  
“service”: “customer”,  
“message”: “setFinalReturnCustomerState - Customer 11111111111 is Active Open Sea”,  
“stack\_trace”: “”  
}

I need the information that comes after “is”, which could be: Quarantine, Open Sea, No Open Sea.

With this I will create a processing rule for this to become a dimension in my metric. I tried to use DPL Arquiteto but I was not successful in the syntax.

---

<div class="post-metadata">

**Author:** ![gbaudart](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gbaudart](https://community.dynatrace.com/u/gbaudart)\
**Post date:** [December 27, 2023, 5:40pm UTC](https://community.dynatrace.com/t/which-dpl-syntax-is-applicable/43197/2 "2023-12-27T17:40:49Z")

</div>

Hi [@WellPP](https://community.dynatrace.com/user/64547)&nbsp;,

You can try to add :

```markup
| parse content, "LD 'is' STRING:VARIABLENAME"
| fields VARIABLENAME

```

Let me know it’s work 🙂

---

<div class="post-metadata">

**Author:** ![gilgi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gilgi/32/11747_2.png) [@gilgi](https://community.dynatrace.com/u/gilgi)\
**Post date:** [January 1, 2024, 7:33am UTC](https://community.dynatrace.com/t/which-dpl-syntax-is-applicable/43197/3 "2024-01-01T07:33:45Z")

</div>

Actually I would have even do one more step and parsing the content into a JSON object so that you’re sure you’re parsing only the message itself. something like:

```javascript
| parse content, "JSON:parsedJsonObj"
| parse parsedJsonObj[message], "LD 'is' STRING:customerName"
| fieldsRemove parsedJsonObj

```
