https://github.com/fujio-turner/sg-log-reader-demo
Parsing and Aggregating Sync Gateway Logs
https://github.com/fujio-turner/sg-log-reader-demo
couchbase couchbase-mobile couchbase-sync-gateway sync-gateway
Last synced: 3 months ago
JSON representation
Parsing and Aggregating Sync Gateway Logs
- Host: GitHub
- URL: https://github.com/fujio-turner/sg-log-reader-demo
- Owner: Fujio-Turner
- License: apache-2.0
- Created: 2017-08-18T02:50:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T05:51:34.000Z (9 months ago)
- Last Synced: 2024-08-23T06:50:12.216Z (9 months ago)
- Topics: couchbase, couchbase-mobile, couchbase-sync-gateway, sync-gateway
- Language: JavaScript
- Homepage: https://fujio-turner.github.io/sg-log-reader-demo/
- Size: 27.8 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SG Log Reader Demo
Version 2.0
## Why
Couchbase Mobile 2.x and greater now communicates via WebSockets.
This means it easier to track a mobile user's replication to see "Why is sync is slow?" or "Why is it not syncing?".
## What
The sg-log-reader tool takes your SG log file and parses them to:* Aggregate
* Count
* Sum
* and More
It takes the above information and puts it into a Couchbase Server bucket to query for a built-in web dashboard (ABOVE IMAGE).
## How
#### Process
You just need to:1. Pick a `sg_info.log` for the python script to process.
2. Have access to a CB Cluster for the script to insert data into.
3. Go to (`http://127.0.0.1:8080`) to checkout the Dashboard above.
#### Result
It will:
- Output all the Sync Gateway's databases
- Output a list of names of all device users.
- Output a graph of all the synced that happen from the: Begin & DateTime you picked.
- You can pick a specific user to drill down to.
- pick a specific sync(s) for a specific user.###### Click below to get started:
### [Docs - SG Log Reader Demo](https://fujio-turner.github.io/sg-log-reader-demo/)