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
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
- Navigate to https://manage.auth0.com/#/tenant/webtasks for the tenant you’ve installed the extension
- Follow the first two steps to install and setup the profile.
- run
wt cron ls -p "{your-profile-name}"
Changing the cron frequency
- Find the
logs-to-*
extension to view its current cron schedule. - 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
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:
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.