# Auth0 Logs CloudWatch extension v2.0 -\> can't keep up!

**URL:** <https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694>\
**Category:** Get Help\
**Tags:** logs, extensions, aws\
**Created:** [July 26, 2018, 8:38pm UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694 "2018-07-26T20:38:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe\_Tillotson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joe_tillotson/32/12709_2.png) [@Joe\_Tillotson](https://community.auth0.com/u/Joe_Tillotson)\
**Post date:** [July 26, 2018, 8:38pm UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/1 "2018-07-26T20:38:38Z")

</div>

Hello community. We are trying to set up the supported extension “Auth0 Logs to [AWS] CloudWatch”. We actually have it configured both in our test & prod tenants, but we have the same problem in both tenants: the logs that are being shipped to CloudWatch are 1 month old (so pretty useless).

The problem (I believe) is simple to state: since we have an enterprise account, Auth0 is keeping (nicely) 1 month of event logs for us, but this extension can only ‘ship’ a small-ish number of log events per cycle (5 minute min cycle), and it is starting from ‘the beginning’ of our logs, and so it can never ‘catch up’ to today. In fact, it wouldn’t even keep up even if we could tell it “don’t start from the beginning of the logs, just start with any that are from now+”, because we (our users) are generating more log events than it can process.

When we configure it, the “BATCH\_SIZE” is defaulted to 100, and increasing that number seems to have no effect. In the Github repo, I see this line of code:

[https://github.com/TDG-Platform/auth0-logs-to-cloudwatch/blob/master/index.js#L54](https://github.com/TDG-Platform/auth0-logs-to-cloudwatch/blob/master/index.js#L54)

… which appears to state “if you set me (BATCH\_SIZE) to \>100, I’ll just (only) do 100”.

Any advice on how to configure this extension properly will be appreciated.

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [July 26, 2018, 9:41pm UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/2 "2018-07-26T21:41:51Z")

</div>

That is correct, the batch size is limited to 100 log events per batch. However, multiple batches are sent during each cycle. We’re using the Sumologic extension so it’s not an apples-to-apples comparison, but we had no trouble getting our 30 days of historical data into Sumo. You could try setting the START\_FROM parameter in the extension’s config:

 ![41%20PM](https://global.discourse-cdn.com/auth0/original/2X/6/638d620a68a87039f93534ed3e0cfc53809b5c68.png)

---

<div class="post-metadata">

**Author:** ![Joe\_Tillotson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joe_tillotson/32/12709_2.png) [@Joe\_Tillotson](https://community.auth0.com/u/Joe_Tillotson)\
**Post date:** [July 26, 2018, 10:18pm UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/3 "2018-07-26T22:18:55Z")

</div>

Thanks for that reply. In my ignorance, is the START\_FROM (checkpoint id to start from) best set using an existing (Auth) log entry’s ‘log\_id’? (e.g. “log\_id”: “90020180726221336280679066259347277553541578856958263410”)

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [July 26, 2018, 11:40pm UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/4 "2018-07-26T23:40:19Z")

</div>

I believe that is correct. I seem to recall using it in the past and using the `log_id` of the log I wanted to start from, but I’m going on memory here. Would help if the docs were more explicit. I’ll try submitting a PR to add an explanation of `START_FROM` to the docs.

---

<div class="post-metadata">

**Author:** ![Joe\_Tillotson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/joe_tillotson/32/12709_2.png) [@Joe\_Tillotson](https://community.auth0.com/u/Joe_Tillotson)\
**Post date:** [July 26, 2018, 11:42pm UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/5 "2018-07-26T23:42:49Z")

</div>

Appreciate it. That is true, a reasonably intelligent person reads the field label and says "huh? what’s a ‘Checkpoint ID’? "

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [July 26, 2018, 11:52pm UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/6 "2018-07-26T23:52:29Z")

</div>

They haven’t added official docs for the Cloudwatch extension yet. I start it and see how far I get. Sumo docs could use an update too (no mention of `START_FROM`).

> **[Auth0 Extensions](https://auth0.com/docs/customize/extensions)**
>
> Describes Auth0 extensions that enable you to install applications or run commands and scripts that extend the functionality of Auth0.

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [July 27, 2018, 12:44am UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/7 "2018-07-27T00:44:54Z")

</div>

Started a doc for the CloudWatch extension:

> <https://github.com/auth0/docs/pull/6438/files>
>
> Starts a documentation page for the CloudWatch logs extension.

Needs CloudWatch configuration details. I’ll update it over the weekend.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 26, 2019, 8:45am UTC](https://community.auth0.com/t/auth0-logs-cloudwatch-extension-v2-0-cant-keep-up/13694/8 "2019-07-26T08:45:16Z")

</div>


