# Seperate content of the logs in different fields,

**URL:** <https://community.dynatrace.com/t/seperate-content-of-the-logs-in-different-fields/45121>\
**Category:** Logs\
**Tags:** log-processing, log-monitoring-class\
**Created:** [April 13, 2024, 3:53pm UTC](https://community.dynatrace.com/t/seperate-content-of-the-logs-in-different-fields/45121 "2024-04-13T15:53:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi\_03](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@abhi\_03](https://community.dynatrace.com/u/abhi_03)\
**Post date:** [April 13, 2024, 3:53pm UTC](https://community.dynatrace.com/t/seperate-content-of-the-logs-in-different-fields/45121/1 "2024-04-13T15:53:31Z")

</div>

I am looking for parse command to seperate below content from the logs, those are comma seperated

INSERT,STATISTIC,“205456”,679,“”,“SmSyServerPlugin”,“”,59998,“DBP\_Total\_Request\_Sent\_Count”,“oioujio|ALL”,0,0,0,0,0,“”,1713015899987,0,“sgy”,0,0,0,PC,0,0,0,0,0

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 15, 2024, 6:49am UTC](https://community.dynatrace.com/t/seperate-content-of-the-logs-in-different-fields/45121/2 "2024-04-15T06:49:29Z")

</div>

Hi,

You have [here](https://docs.dynatrace.com/docs/shortlink/dpl-dynatrace-pattern-language-hub#example) a Dynatrace Pattern Language example.

If you are in Grail, I recommend you [DPL Architect](https://docs.dynatrace.com/docs/shortlink/dpl-architect).

Best regards

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [April 15, 2024, 9:35am UTC](https://community.dynatrace.com/t/seperate-content-of-the-logs-in-different-fields/45121/3 "2024-04-15T09:35:47Z")

</div>

**Example:**

```php
data record(line = "INSERT,STATISTIC,,\"205456\",679,\"\",\"SmSyServerPlugin\",\"\",59998,\"DBP_Total_Request_Sent_Count\",\"oioujio|ALL\",0,0,0,0,0,\"\",1713015899987,0,\"sgy\",0,0,0,PC,0,0,0,0,0")
| fieldsAdd splitLine = splitString(line, ",")
| fieldsAdd field1 = splitLine[0], field2 = splitLine[1], field3 = splitLine[2]

```
