# Plugins: Obtain a Process Snapshot from a Host

**URL:** <https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [February 12, 2021, 11:34am UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479 "2021-02-12T11:34:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![STiAT](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@STiAT](https://community.dynatrace.com/u/STiAT)\
**Post date:** [February 12, 2021, 11:34am UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479/1 "2021-02-12T11:34:18Z")

</div>

Since naming in the dynatrace UI seems not consistent with the actual process instance names reported in Plugins, is there a way to get a proper process snapshot to copy into simulator\_plugin.json from a certain host to make proper testing of the plugin activation possible?

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [February 12, 2021, 1:37pm UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479/2 "2021-02-12T13:37:38Z")

</div>

I think this API may be helpful for you:

> **[Processes API - GET a process](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/topology-and-smartscape/processes-api/get-a-process)**
>
> View a monitored process via Dynatrace API.

Sebastian

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [February 12, 2021, 3:27pm UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479/3 "2021-02-12T15:27:30Z")

</div>

Go to C:\ProgramData\dynatrace\oneagent\log\plugin\pluginDevLoggerPluginEngineDefault.log or the equivalent log directory on Linux and search for \_update\_latest\_snapshot

You’ll find lines that look like this (the process snapshot):

```auto
2021-02-12 16:15:21,762 DEBUG 29988(MainThread) - [_update_latest_snapshot] Latest process snapshot: ProcessSnapshot(host_id=1850212188241764429, entries=[ProcessSnapshotEntry(group_id=6772456763978972123, node_id=0, group_instance_id=9498283671383834280, process_type=11, group_name='MicrosoftSearchInBing.exe', processes=[ProcessInfo(pid=6264, process_name='MicrosoftSearchInBing.exe', properties={'ExePath': 'C:\\Program Files (x86)\\Microsoft\\Microsoft Search in Bing\\MicrosoftSearchInBing.exe', 'ParentPid': '944', 'WorkDir': 'C:\\WINDOWS\\system32\\'})], properties={'Technologies': 'DotNet,DOTNET,CLR'}), ProcessSnapshotEn [and so on, and so on]

```

You might have to deploy a custom extension first before this log entry starts being written, but it depends on your OneAgent version.

Mike

---

<div class="post-metadata">

**Author:** ![STiAT](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@STiAT](https://community.dynatrace.com/u/STiAT)\
**Post date:** [February 15, 2021, 7:14am UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479/4 "2021-02-15T07:14:39Z")

</div>

Sorry, this does not help, it does not output a json for the simulator, not even the required information to build a json which could be used (executabe properties are missing).

---

<div class="post-metadata">

**Author:** ![STiAT](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@STiAT](https://community.dynatrace.com/u/STiAT)\
**Post date:** [February 15, 2021, 7:16am UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479/5 "2021-02-15T07:16:12Z")

</div>

Thanks, I found that, but that’s quite some work to get the proper processes out there and form into a json as a whole to see what works and what does not. REally no easier way to get a simulator snapshot?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [February 15, 2021, 9:51am UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479/6 "2021-02-15T09:51:04Z")

</div>

I’m sorry but this is currently the best way. We’re working on a new extension framework (as was announced during the Perform conference last week), which will iron out some of the tedious bits of the existing framework.

---

<div class="post-metadata">

**Author:** ![lawrence\_cuneaz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lawrence_cuneaz/32/1053_2.png) [@lawrence\_cuneaz](https://community.dynatrace.com/u/lawrence_cuneaz)\
**Post date:** [March 2, 2023, 10:44pm UTC](https://community.dynatrace.com/t/plugins-obtain-a-process-snapshot-from-a-host/21479/7 "2023-03-02T22:44:12Z")

</div>

To get a process snapshot you can enable automatic process snapshots that run based on any of these triggering events or you can run a snapshot manually by selecting&nbsp; **…** &nbsp;in the Process Snapshots section on a specific host page.

- High host CPU usage
- High host memory usage
- High packet drop rates
- High NIC utilization rates
- High number of NIC errors
- Process availability events

 ![process-instance-snapshot-1404-c1bcee55de.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/36ece11508130d4226b65050a5cb22044250b379.png)

 ![lawrence_cuneaz_1-1677797197438.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7c544b82f5852e40fbbaf6ab0437ed333d1aa856.png)

> **[Host monitoring with Dynatrace](https://docs.dynatrace.com/docs/observe/infrastructure-observability/hosts/monitoring/host-monitoring)**
>
> Monitor hosts with Dynatrace.
