# Dynatrace environments usage report

**URL:** <https://community.dynatrace.com/t/dynatrace-environments-usage-report/22932>\
**Category:** Dynatrace Managed\
**Tags:** account-management, dynatrace-managed\
**Created:** [January 21, 2020, 11:10am UTC](https://community.dynatrace.com/t/dynatrace-environments-usage-report/22932 "2020-01-21T11:10:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniil\_kochetov](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/daniil_kochetov/32/19108_2.png) [@daniil\_kochetov](https://community.dynatrace.com/u/daniil_kochetov)\
**Post date:** [January 21, 2020, 11:10am UTC](https://community.dynatrace.com/t/dynatrace-environments-usage-report/22932/1 "2020-01-21T11:10:25Z")

</div>

Hello.

Our Dynatrace managed installation contains multiple environments. Each environment dedicated to particular application and supposed to be used by defined support teams. In order to provide them with the best service I need to know how often every environment accessed by the support guys: do they really use Dynatrace or we are wasting our host unit licenses on it or what kind of reports they run most often.

Is there any way to figure out using any kind of system log?

I think access.log analogue would be sufficient end enough.

---

<div class="post-metadata">

**Author:** ![alonso\_decosio](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alonso\_decosio](https://community.dynatrace.com/u/alonso_decosio)\
**Post date:** [January 21, 2020, 11:31am UTC](https://community.dynatrace.com/t/dynatrace-environments-usage-report/22932/2 "2020-01-21T11:31:33Z")

</div>

If you have two Dynatrace managed environments, you can instrument you DT servers with the OneAgent. That way you can get RUM data and analyze it like a normal web application.

You can also take a look at the Audit logs to get the information that you are looking for [Audit logs via API — Dynatrace Docs](https://www.dynatrace.com/support/help/how-to-use-dynatrace/data-privacy-and-security/configuration/audit-logs/)

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [January 21, 2020, 11:47am UTC](https://community.dynatrace.com/t/dynatrace-environments-usage-report/22932/3 "2020-01-21T11:47:45Z")

</div>

What you need is actually audit.user.log available at each cluster node. This is a sample entry:

```auto
2020-01-21 09:37:11 UTC {"eventType":"LOGIN","tenantId":"environment-identifier-uuid","userId":"radoslaw.s","userIdType":"USER_NAME","userOrigination":"Forwarded: 1.2.3.4","sessionId":"3213123213","identity":"your.node.ip","identityCategory":"WEB_UI","success":true,"timestamp":1579599431280,"message":null,"jsonPatch":null}

```

To have a full overview, you need to process log files from all cluster nodes.

---

<div class="post-metadata">

**Author:** ![rastislav\_danis](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rastislav\_danis](https://community.dynatrace.com/u/rastislav_danis)\
**Post date:** [January 21, 2020, 12:26pm UTC](https://community.dynatrace.com/t/dynatrace-environments-usage-report/22932/4 "2020-01-21T12:26:03Z")

</div>

easiest to execute is api call (f.e. for last 1 day): curl -X GET “https://\<your\_environment\>/api/v2/auditlogs?filter=eventType%28LOGIN%29&from=now-1d&sort=-timestamp” -H “accept: application/json; charset=utf-8” -H “Authorization: Api-Token \<your\_api\_token\_with\_auditlog\_rights\>”

first you need to enable audit logs (use link in previous post)
