https://github.com/jsa2/splitarrayloganalytics
https://github.com/jsa2/splitarrayloganalytics
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jsa2/splitarrayloganalytics
- Owner: jsa2
- Created: 2021-05-21T10:13:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-21T10:23:32.000Z (about 5 years ago)
- Last Synced: 2025-03-14T13:43:09.115Z (about 1 year ago)
- Language: JavaScript
- Size: 368 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Split data in array to chunks to be sent for Log Analytics

## test
1. For testing use createTestData.js to create testArray
2. run test.js to see how chunks are created
```javascript
//set fitting throttleSize (In example it is 22)
Throttld(22)
```
## Use with log analytics
1. Get key from log analytics

2. Create key.json in config folder
```
//Not a real key, but similar to show key type etc
{
"id":"149fecb3-38a3-4800-a14e-a92e3f534efa",
"key":"K+l6DK2nlDVNuJH5+Lo2fsbWflmYswpBdXYm+9eKoj5pA6armo8TkxERQvweR4ZXtBSXmWar4WWSTFbkpZo48A=="
}
```
## notes
No type or error handling
- Don't use negative throttle-size
- Don't use string as throttle-size