# Log Processing Rule - classic

**URL:** <https://community.dynatrace.com/t/log-processing-rule-classic/47537>\
**Category:** DQL\
**Tags:** dynatrace-managed, logs\
**Created:** [September 7, 2024, 12:33am UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537 "2024-09-07T00:33:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JhonU](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Post date:** [September 7, 2024, 12:33am UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537/1 "2024-09-07T00:33:29Z")

</div>

Hello everyone, I’m new to using pattern language. I’m coming to the community because I’m having trouble getting the fields and values ​​from a json format that comes from log ingestion. The Json format is the following. I’ve managed to get the value up to this point, but I can’t extract the information. I’m interested in getting the “accountNumber” and “transferType” fields. Maybe you can help me with your experience in this.

```markup
"valor": "Sending. data: {\"ordererDetails\":{\"accountInfo\":\"YES\",\"customerInfo\":{\"firstName\":\"FISRT\"}},\"beneficiaryDetails\":{\"accountInfo\":{\"accountNumber\":\"111111\",\"accountType\":\"AAA\"},\"customerInfo\":{\"firstName\":\"FABS FABS\",}},\"transferDetails\":{\"transferType\":\"CASH_NOW\",\"amount\":10}}. trackingId: 111"

```

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [September 9, 2024, 5:25am UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537/2 "2024-09-09T05:25:07Z")

</div>

Hi Jhon,

I think this could work:

PARSE(content,“JSON:parsedJson”)| FIELDS\_ADD(accountNumber: parsedJson[“accountNumber”],transferType:parsedJson[“transferType”])  
| FIELDS\_REMOVE(parsedJson)

Test the rule before enabling the rule.

[Here](https://docs.dynatrace.com/docs/shortlink/lma-log-processing-examples) you have examples.

Hope it helps.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![JhonU](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@JhonU](https://community.dynatrace.com/u/JhonU)\
**Post date:** [September 9, 2024, 1:50pm UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537/3 "2024-09-09T13:50:21Z")

</div>

thanks so much

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 10, 2024, 11:54am UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537/4 "2024-12-10T11:54:23Z")

</div>

Hello&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)

I require your help in interpreting an error **code** for parsing/presentation as a table field.

2024-12-10 09:44:45.255&nbsp; **ERROR** &nbsp;[users,CIBW,9f812ead596fb3f1fb1c3c10e0ffafb5,8a17037d4d18df4a,CIBW12100943945135fe9f48ab6b346d56b,http-nio-8080-exec-6] com.abcdefg.ib.commons.advice.ErrorAdvice.handleIntegrationException:92 | Boom!&nbsp; **Code: E000000** , Message:E000000,

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [December 10, 2024, 1:01pm UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537/5 "2024-12-10T13:01:39Z")

</div>

Hi Babar,

Sorry but I don’t understand exactly what you need to.  
Do you need to capture what goes behind ERROR and Code?

Could you explain a bit more what you need, please?  
Thanks in advance.

Elena.

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [December 11, 2024, 4:22am UTC](https://community.dynatrace.com/t/log-processing-rule-classic/47537/6 "2024-12-11T04:22:06Z")

</div>

Hello&nbsp;[@erh\_inetum](https://community.dynatrace.com/user/40722)

I aim to extract solely the Code: E000000 from the error logs and present it in a tabular format within the logs.

![Babar_Qayyum_0-1733890857324.png](https://global.discourse-cdn.com/dynatrace/optimized/2X/e/eb54fbb620a88d2031e12e15b279db542fef5fba_2_690x19.png)

Regards,

Babar
