• Stars
    star
    126
  • Rank 282,943 (Top 6 %)
  • Language
    JavaScript
  • Created over 14 years ago
  • Updated almost 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Real-time (Nginx, PHP, syslog, "mysqladmin extended") log file analysis and plotting using Python, mongoDB, Orbited, and flot

What it does

  • Stores log file data from multiple remote hosts to MongoDB
    • Creates processes that ssh to a remote host and run "tail --follow=name" on the log file
    • Parses the log file using Regular Expressions
    • Stores the data in MongoDB
  • Queries MongoDB for interesting statistics e.g.:
    • Requests/mintute
    • Cache hit rate
    • Count of HTTP 500 statuses
    • Average upstream response time
    • MySQL questions/second
  • Creates real-time plots in a web browser

Dependencies

  • MongoDB
  • PyMongo
  • Orbited
  • Twisted
  • stompservice
  • flot
  • a few more in pip-requirements.txt

To use it

  • Copy settings_template.py to settings.py and edit it
  • Start mongod
  • Start orbited
  • In first terminal, run "sourceexecutive.py"
  • In second terminal, run "analyzerexecutive.py"

Problems / Limitations

  • Leaves "mysqladmin extended" processes running on remote host
  • The bulk of this is set up for my custom Nginx log file (but it is easy to write your own custom sources, parsers, and analyzers.

More Repositories

1

use-fit-text

React hook used to fit text in a div
TypeScript
121
star
2

flow-cheatsheet

Script to generate a Flow type cheat sheet
Python
65
star
3

kage

Yet another task manager built with Firebase, Next.js, React, Redux, styled-components, Reactstrap, Flow, and Prettier
JavaScript
55
star
4

retry-decorator

Decorator to retry calling a function upon error
Python
46
star
5

flask-jquery-ajax-example

AJAX example using jQuery and Flask
Python
42
star
6

typescript-cheatsheet

Script to generate a TypeScript cheat sheet
Python
33
star
7

subset-sum

Four examples solving a subset sum (knapsack-like) problem
Python
30
star
8

trace-tools

A decorator used for tracing Python code execution
Python
17
star
9

django-trace

A django plugin for tracing code execution
Python
17
star
10

remote-tools

Tools for remote server administration using SSH and Python
Python
12
star
11

graphene-relay-pagination-example

An example GraphQL pagination API for Relay using Graphene and Django + a Next.js React UI
Python
11
star
12

react-chained-modals-comparison

A comparison of approaches for building a sequence of chained modals using React, React Router, Redux, Redux Thunk and Redux Saga
CSS
10
star
13

session-timeout-example

Bank style session timeout example
HTML
9
star
14

react-debounced-props

React higher order component that allows debouncing component updates
JavaScript
9
star
15

homedir

dotfiles, scripts, etc in home directory
Python
8
star
16

react-learning

Code from various React, Redux, Webpack, etc tutorials
JavaScript
8
star
17

flask-encryptedsession

Flask encrypted cookie session
Python
6
star
18

flask-subdomaindevserver

Local development server that uses a different configuration based on the subdomain of the request
Python
6
star
19

redux-promise-memo

"memoization" for promise-based Redux action creators
JavaScript
6
star
20

.spacemacs.d

Emacs spacemacs config
Emacs Lisp
4
star
21

emacs

My .emacs.d directory - No longer current. New config: https://github.com/saltycrane/.spacemacs.d
Emacs Lisp
4
star
22

django-foreign-key-across-db-testproject

Python
4
star
23

django-extras

Python
3
star
24

flask-principal-example

Python
3
star
25

next-server-side-rollbar-example

Example Next.js server-side Rollbar error reporting
TypeScript
3
star
26

flask-subdomain-dispatcher-example

See https://github.com/saltycrane/flask-subdomaindevserver instead
Python
3
star
27

css-cheat-sheets

A Node.js React script to generate a static CSS width cheat sheet HTML file
HTML
2
star
28

soap-suds-chrome-ads-wsdl-stuff

Failing and successful examples using suds with Chrome ADS SUDS service
Python
2
star
29

debug-tools

Enhanced print statements
Python
2
star
30

typescript-react-static-render-script

Node.js script using TypeScript and React to render a static HTML page
TypeScript
2
star
31

immer-use-reducer-typescript-example

TypeScript
1
star
32

django-foreign-key-string-argument

Python
1
star
33

wmii-scripts

Python scripts for controlling the wmii window manager
Python
1
star
34

pillow-issue-example

Example for a Pillow issue
Python
1
star
35

next-storybook-typescript-example

HTML
1
star
36

aphrodite-to-css-modules-codemod

jscodeshift codemod to convert from Aphrodite to CSS Modules
TypeScript
1
star
37

aws-cli-and-docker

Docker image with `amazon/aws-cli` and `docker` installed for CI/CD pipelines
Dockerfile
1
star
38

recoil-vs-context-grid-test

Code used for comparing performance of a spreadsheet-like grid using Recoil vs. React Context
HTML
1
star