# 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:** 1\
**Showing post:** 3

<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]

```

---

_[View the full topic](https://community.dynatrace.com/t/seperate-content-of-the-logs-in-different-fields/45121)._
