# Logstash extension BATCH\_SIZE for auth0

**URL:** <https://community.auth0.com/t/logstash-extension-batch-size-for-auth0/11366>\
**Category:** Get Help\
**Created:** [May 4, 2018, 12:51am UTC](https://community.auth0.com/t/logstash-extension-batch-size-for-auth0/11366 "2018-05-04T00:51:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcsmith](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@bcsmith](https://community.auth0.com/u/bcsmith)\
**Post date:** [May 4, 2018, 12:51am UTC](https://community.auth0.com/t/logstash-extension-batch-size-for-auth0/11366/1 "2018-05-04T00:51:49Z")

</div>

Hello is there any way to increase the BATCH\_SIZE to be more than 300? We receive way more than that many log entries in five minutes. Thank you

---

<div class="post-metadata">

**Author:** ![sgmeyer](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgmeyer/32/3387_2.png) [@sgmeyer](https://community.auth0.com/u/sgmeyer)\
**Post date:** [May 4, 2018, 11:18am UTC](https://community.auth0.com/t/logstash-extension-batch-size-for-auth0/11366/2 "2018-05-04T11:18:10Z")

</div>

Hi @bcsmith,

I assume you are using one of the `logs-to` extensions. If so, then this extension runs as a cron webtask. These can be rescheduled with the Webtask CLI.

**Installing the CLI**

1. Navigate to [https://manage.auth0.com/#/tenant/webtasks](https://manage.auth0.com/#/tenant/webtasks) for the tenant you’ve installed the extension
2. Follow the first two steps to install and setup the profile.
3. run `wt cron ls -p "{your-profile-name}"`

**Changing the cron frequency**

1. Find the `logs-to-*` extension to view its current cron schedule.
2. Determine what you want the new schedule to be and update the webtask using `wt cron reschedule` command.

Here are the webtask docs you can use to see more options for cron scheduling: [https://webtask.io/docs/cron](https://webtask.io/docs/cron)

**Changing Batch Size**

I don’t know if there is a batch size limit for the extensions. Technically, the API endpoint the extension uses for retrieving logs is 100 records, but the extensions themselves can handle larger batch sizes (I believe). I believe when you request a batch of say 500 the extension will break this into 5 requests of 100 records each. I don’t recall how log extensions with version 1.\* works, but version 2.0 should have a free form entry text box allowing entry of an integer.

If interested here is the code:

> <https://github.com/auth0-extensions/auth0-log-extension-tools/blob/e626e29ce627b1eae7066ca4a4355e03bf60917b/src/processor.js>

At any route, you could probably play with both the cron scheduling and batch size. Keep in mind this extension uses Manage API to get logs. So, if you have a batch of 500 this will be 5 calls that would work against your API rate limits with auth0.

---

<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 25, 2019, 1:04pm UTC](https://community.auth0.com/t/logstash-extension-batch-size-for-auth0/11366/3 "2019-07-25T13:04:27Z")

</div>


