# Internal server errors when using the audit logs API

**URL:** <https://community.hubspot.com/t/internal-server-errors-when-using-the-audit-logs-api/114635>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [August 16, 2024, 1:23pm UTC](https://community.hubspot.com/t/internal-server-errors-when-using-the-audit-logs-api/114635 "2024-08-16T13:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dna59](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@dna59](https://community.hubspot.com/u/dna59)\
**Post date:** [August 16, 2024, 1:23pm UTC](https://community.hubspot.com/t/internal-server-errors-when-using-the-audit-logs-api/114635/1 "2024-08-16T13:23:06Z")

</div>

Hi! Enjoying the HubSpot API!

But unfortunately, I ran into a problem.

I have a process scheduled for the beginning of each hour that collects audit logs for the passed hour through the API endpoint [`/account-info/v3/activity/audit-logs`](https://developers.hubspot.com/docs/api/settings/account-activity-api). Recently, processes started to fail. I noticed that a single _second_ can contain hundreds of thousands of log entries. Due to the API’s limit of 100 log entries per request, an iteration using the cursor may take more than an hour; and eventually the iteration may fail with an “internal server error”. Retries don’t help, because the same error is returned.

I suppose there are a lot of log entries because a single action in the UI can result in thousands of actions logged in audit logs. I kindly ask you to either increase the limit of the log entries per API request, or compress the entries generated by UI actions.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 19, 2024, 8:23pm UTC](https://community.hubspot.com/t/internal-server-errors-when-using-the-audit-logs-api/114635/2 "2024-08-19T20:23:49Z")

</div>

Hey, @dna59 👋 Thank you for your feedback. If you have a moment, adding your suggestion to the [Ideas Community](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas) and getting some upvotes will be very helpful in getting your suggestion in front of the Product team. Additionally, if you have a paid subscription, I suggest sharing this with your CSM or CSM-team as a potential roadblock in your ongoing usage.

Best,

Jaycee
