# Extract Data from java script error

**URL:** <https://community.dynatrace.com/t/extract-data-from-java-script-error/11416>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, oneagent-sdk, javascript\
**Created:** [March 14, 2018, 11:11pm UTC](https://community.dynatrace.com/t/extract-data-from-java-script-error/11416 "2018-03-14T23:11:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aftab\_alam2](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@aftab\_alam2](https://community.dynatrace.com/u/aftab_alam2)\
**Post date:** [March 14, 2018, 11:11pm UTC](https://community.dynatrace.com/t/extract-data-from-java-script-error/11416/1 "2018-03-14T23:11:31Z")

</div>

HI All,

we are using dynatrace SaaS for RUM monitoring. we are using oneagent js SDK to send details of images in case (not found error). this is sent as Java script error. We want to parse this error and group it by multiple substr that is send in this java script error.

we can see the string that we sent in dynatrace under top java script error but I am not sure how to extract fields from it.

please let me know if this is possible to do in dynatrace or extract error message from dynatrace to another tool like splunk?

Thanks

Aftab

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 11, 2020, 7:46pm UTC](https://community.dynatrace.com/t/extract-data-from-java-script-error/11416/2 "2020-06-11T19:46:49Z")

</div>

you can pull this data via the API, and if you want splunk to process the Dyantrace Data, you can integrate splunk via the following splunk plugins - you will just need to provide a Token and the Cluster URL.

> **[Dynatrace App for Splunk | Splunkbase](https://splunkbase.splunk.com/app/4040)**
>
> Note: Most of the content of this app has been migrated into the Content Pack for Third-Party APM. Future enhancements will be found in that Content Pack which is installed through the Splunk App for Content Packs...

> **[Dynatrace Add-on for Splunk | Splunkbase](https://splunkbase.splunk.com/app/3969)**
>
> The Dynatrace Add-on for Splunk works together with the Dynatrace App for Splunk and provides a set of powerful dashboards and saved searches to visualize Dynatrace data in Splunk.
