# Ingest only JSON portion of this log entry

**URL:** <https://community.dynatrace.com/t/ingest-only-json-portion-of-this-log-entry/51122>\
**Category:** Logs\
**Tags:** log-configuration, logs\
**Created:** [April 8, 2025, 5:40pm UTC](https://community.dynatrace.com/t/ingest-only-json-portion-of-this-log-entry/51122 "2025-04-08T17:40:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrmckenna](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@chrmckenna](https://community.dynatrace.com/u/chrmckenna)\
**Post date:** [April 8, 2025, 5:40pm UTC](https://community.dynatrace.com/t/ingest-only-json-portion-of-this-log-entry/51122/1 "2025-04-08T17:40:54Z")

</div>

I have a use case where we are ingesting an entry from the Windows Application Log using the following ingestion rule

 ![chrmckenna_0-1744133869521.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/77489d3be86aa623f72e16492f07c482d229fbe5.png)

The log event ingests fine and looks like this.&nbsp; You can see embedded JSON within the text.&nbsp; We’re struggling with a processing rule that would throw out everything except the JSON portion, as we don’t want to save any of that text.

“The description for this event cannot be found.\nAdditional info: \nTIDALSaMaster: {\“Date\”: \“20250408\”, \“Time\”: \“102536\”, \“JobName\”: \“06 xxxxxxxxx - Consumption to S3\”, \“JobStatus\”: \“Completed Abnormally\”}\n”

We want to get rid of all of this part and only save the JSON

The description for this event cannot be found.\nAdditional info: \nTIDALSaMaster:

Can anyone help with the proper rule

---

<div class="post-metadata">

**Author:** ![HansLougas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hanslougas/32/23712_2.png) [@HansLougas](https://community.dynatrace.com/u/HansLougas)\
**Post date:** [April 8, 2025, 5:49pm UTC](https://community.dynatrace.com/t/ingest-only-json-portion-of-this-log-entry/51122/2 "2025-04-08T17:49:52Z")

</div>

Hi!

You need a simple processing rule.

Set up a new pipeline in OpenPipeline, add a processor (type DQL) and add a following processor:

```auto
parse content, "DATA JSON:json"
| fieldsRemove content
| fieldsRename content = json

```

The result will have content field with only JSON part. Then make sure to route correct data to that pipeline in the Dynamic routing section.

You may find more helpful resources [here](https://docs.dynatrace.com/docs/shortlink/openpipeline-processing-examples#parse-a-field-containing-json-as-a-raw-string)

 ![Screenshot 2025-04-08 at 20.49.44.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/d/ddd91e7ef4051ff09f2f2d1b2cb36d762b1f64f4.png)

---

<div class="post-metadata">

**Author:** ![chrmckenna](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@chrmckenna](https://community.dynatrace.com/u/chrmckenna)\
**Post date:** [April 8, 2025, 5:56pm UTC](https://community.dynatrace.com/t/ingest-only-json-portion-of-this-log-entry/51122/3 "2025-04-08T17:56:34Z")

</div>

Thanks !!

I have not used the pipeline stuff yet so let me give this a shot.
