# Cluster "Event Log" through API?

**URL:** <https://community.dynatrace.com/t/cluster-event-log-through-api/19135>\
**Category:** Dynatrace API\
**Tags:** automation, dynatrace-api\
**Created:** [April 23, 2020, 9:12pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135 "2020-04-23T21:12:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [April 23, 2020, 9:12pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/1 "2020-04-23T21:12:27Z")

</div>

It seems that it is possible to get the Managed “Audit Log” through API, despite still not having used it:

> **[Audit logs API - GET audit log](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/audit-logs/get-log)**
>
> View full audit log via Dynatrace API.

Does anyone know if it’s possible to get the “Event Log” from the CSC in Managed?

---

<div class="post-metadata">

**Author:** ![purva\_bundela](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@purva\_bundela](https://community.dynatrace.com/u/purva_bundela)\
**Post date:** [April 24, 2019, 10:17pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/2 "2019-04-24T22:17:36Z")

</div>

API to get the event data from Cluster Management to fetch the logged in users

---

<div class="post-metadata">

**Author:** ![purva\_bundela](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@purva\_bundela](https://community.dynatrace.com/u/purva_bundela)\
**Post date:** [April 25, 2019, 1:35pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/3 "2019-04-25T13:35:20Z")

</div>

can you please help in this query. We need to figure out the data of active users, utilizing the Dynatrace environment

---

<div class="post-metadata">

**Author:** ![purva\_bundela](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@purva\_bundela](https://community.dynatrace.com/u/purva_bundela)\
**Post date:** [April 26, 2019, 2:58pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/4 "2019-04-26T14:58:35Z")

</div>

Any update in this?

---

<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:** [May 26, 2020, 3:05pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/5 "2020-05-26T15:05:19Z")

</div>

Audit logs in the environment are not the same as Audit in Cluster Management Console. However they overlap in major part.

There’s no Cluster REST API currently to get cluster changes. To fetch them to an external tool, you can pull and process audit logs from the node. You are interested in :

- Audit.user.log - log ins and log outs
- Audit.config.change.log - all configuration changes

hope this helps. REST API will be maybe available late this year or early next year.

---

<div class="post-metadata">

**Author:** ![mrgrvs](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mrgrvs](https://community.dynatrace.com/u/mrgrvs)\
**Post date:** [March 23, 2021, 8:32am UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/6 "2021-03-23T08:32:55Z")

</div>

hi!  
Do you have information on this functionality?

thanks!

---

<div class="post-metadata">

**Author:** ![auke\_wesselink](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@auke\_wesselink](https://community.dynatrace.com/u/auke_wesselink)\
**Post date:** [June 24, 2021, 2:42pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/7 "2021-06-24T14:42:52Z")

</div>

Do you have more information about this question?

We really want the CMC events pulled from the cluster with the API, but I couldn’t find this.

Also for the CMC audit logs we would like this!

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [February 21, 2022, 8:32pm UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/8 "2022-02-21T20:32:12Z")

</div>

Adding as a note to Linux users, since filenames are case sensitive, make sure to to search for audit.user and audit config.&nbsp;Especially handy when you have the _mlocate_ package installed.

# locate udit.user  
/var/opt/dynatrace-managed/log/nodekeeper/audit.user.0.0.log  
/var/opt/dynatrace-managed/log/nodekeeper/audit.user.0.0.log.lck  
/var/opt/dynatrace-managed/log/security-Gateway/audit.user.0.0.log  
/var/opt/dynatrace-managed/log/security-Gateway/audit.user.0.0.log.lck  
/var/opt/dynatrace-managed/log/server/audit.user.0.0.log  
/var/opt/dynatrace-managed/log/server/audit.user.0.0.log.lck

# locate udit.config  
/var/opt/dynatrace-managed/log/server/audit.config.change.0.0.log  
/var/opt/dynatrace-managed/log/server/audit.config.change.0.0.log.lck  
/var/opt/dynatrace-managed/log/server/audit.config.change.0.1.log

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [March 29, 2023, 8:55am UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/9 "2023-03-29T08:55:49Z")

</div>

Original question was: “it’s possible to get the ‘Event Log’ from the CSC in Managed?”

Although Audit logs have been discussed, the Events log seems yet unanswered.  
The Cluster API does not show this information.  
[Cluster API - Authentication | Dynatrace Docs](https://www.dynatrace.com/support/help/managed-cluster/cluster-api/basics/cluster-api-authentication)

The necessity is also indicated in [RFE - Managed Cluster - Notification/send alert of cluster severe and warning events - Dynatrace Community](https://community.dynatrace.com/post/208306)

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [March 29, 2023, 8:56am UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/10 "2023-03-29T08:56:39Z")

</div>

See&nbsp;[Solved: Cluster “Event Log” through API? - Dynatrace Community](https://community.dynatrace.com/post/111860)

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [April 13, 2023, 10:28am UTC](https://community.dynatrace.com/t/cluster-event-log-through-api/19135/11 "2023-04-13T10:28:56Z")

</div>

If somebody has a work around, please share.  
Like a (3rd party?) log forwarder to Dynatrace environment.&nbsp;Checking for&nbsp;Cluster Events in the audit.cluster.event.0.0.log, residing in /var/opt/dynatrace-managed/log/server.
