GithubHelp home page GithubHelp logo

fujio-turner / sg-log-reader-demo Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 28.42 MB

Parsing and Aggregating Sync Gateway Logs

Home Page: https://fujio-turner.github.io/sg-log-reader-demo/

License: Apache License 2.0

Python 32.37% HTML 3.88% CSS 4.26% JavaScript 59.49%
sync-gateway couchbase-mobile couchbase

sg-log-reader-demo's People

Contributors

fujio-turner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nehatawar

sg-log-reader-demo's Issues

Add Back HTML REST Call stat processing

People do crazy things against the HTTP _changes feed that can effect SG. So need to track and record all the starts around all the HTTP calls like version 1.x had.

Need Remove items on graph.

Sometimes the graph gets messy and data overlays over each other making it hard to read. Need to have a way to dynamically remove lines from graph.

"_time=" in the DT string

Sync Gateway Process logs put _time= in front of the string and break the script.

_time=2018-03-14T09:41:30.507-07:00 _level=INFO _msg=go-couchbase: call to ViewCustom("sync_gateway", "channels") in github.com/couchbase/sync_gateway/db.(*DatabaseContext).getChangesInChannelFromView took 6.215245811s

async Process ending

Looks like as the sg_log_reader.py get to the end of the file it keep trying to read items past the end of the file that don't exist.

I think the solution is to as it process near the end of the file to tell the script only go so far so that you don't go past the end of the file.

n/a when times are close together

graph is showing n/a instead of (0:00:000) when the event happens in the same time EX GET request & response happens in the same millisecond.

adding sg general error causes x-axis of charts to mismatch

The adding of sg process errors changes the x-axis value making them not the same as the channel cache values.
The work around is to click/remove the sg process , but the better method is to also change the channel cache chart x-axis too.

Show - Incomplete Request too

Currently the tool only show completed
HTTP: & HTTP+:

There are many time HTTP: with no HTTP+: due to timeouts or failures.

Python Multi-Process improvement.

Its maxing out the single core that the script is operating on.
Since it process a list of all the unique WebSocket ID and go through the IN-Memory version of the SG log file.
I beat we can pass the in memory list to multiple instantiation of this script and cut of that big list into 4 smaller list and have each object do work on multiple cores.

Processing contiguous/ back2back sg_info.log files

Right now in the begging and end of a sg_info.log there are Web-socket Ids that are incomplete.
But If I got a big sg_collect with a bunch of sg_info.log one right after another I need a way to process the orphans / incomplete WebSocket Calls.

Put a TTL on processed docs

The docs don't need to live forever to process an issue. maybe 48-72 hours. enough to load them in the morning on friday and still see them back on Monday afternoon. else reprocess them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.