Coder Social home page Coder Social logo

aaa's Introduction

Arango Agency Analyzer

Allows analysis of arangodbs agency logs.

Setup

Install required python dependencies.

pip install -r requirements.txt

Usage

Given a JSON encoded agency log in a file, start with

python aaa.py <log file> <snapshot file>
python aaa.py [-k] http|https://<endpoint> <jwt>
python aaa.py [-k] -u http|https://<endpoint> username:password

Close the program via :q. Use -k to disable ssl certificate validation.

On the left side you can see a list of all log entries ordered by time. Use the UP/DOWN to navigate. The right side contains different views of information. Currently supported modes are

  • log: display the selected log entry
  • store: display the state of the agency at the selected moment (reconstructed from log entries)

In both modes one can scroll the text using UP/DOWN keys. Focus can be switched using TAB. To change the view mode either use F1/F2 or :view <mode>.

When in store mode with focus on the view side, use p to modify the displayed path of the agency. Use TAB to auto complete your input.

When in the left hand side, use f to enter a regular expression to filter entries by requested paths. Use g to do a basic grep like search on the log entries. Reset filters via R.

To dump the content of the JSON view into a file use :dump filename.

In the log list you can toggle entry markers using m. To delete the marking immediately use M.

Save and Restore states

You can save and restore states of the analyizer. To store a state use: :(s|save|store) [name] where name is the name of the state. if empty a prompt will open.

To restore a state use: :(r|restore) [name] again name is optional and if empty a prompt with autocomplete will open.

You can use 0-9 keys as shortcuts to restore state "0"-"9". To save the state use ALT + "x".

aaa's People

Contributors

joerg84 avatar maierlars avatar

Watchers

 avatar  avatar

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.