Code Monkey home page Code Monkey logo

flow-inspector's People

Contributors

hadhat avatar josaine avatar webholics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flow-inspector's Issues

Add no-cache option to preprocessor

The preprocessor uses heavy caching when importing data. Newly imported data will not be committed to the database until the script is stopped using (SIGTERM, e.g. with Strg+C) or until the END token is read.

This is bad for live-data import, as one will not see newly added data.

A switch that disables heavy caching will enable more commits to the index tables can help with this problem.

preprocess.py and app.py both report pymongo missing

I am running centos6.

I have installed python 2.7.4 from source and installed pip:

I see some odd things occurring when attempting to run either preprocess.py or app.py:

# python -m pdb ./preprocess/preprocess.py
> /root/flow-inspector/preprocess/preprocess.py(10)<module>()
-> """
(Pdb) c
./preprocess/../vendor/pytz-2012h/pytz/__init__.py:35: UserWarning: Module bson was already imported from ./preprocess/../vendor/bson-0.3.2/bson/__init__.pyc, but /usr/local/lib/python2.7/site-packages is being added to sys.path
  from pkg_resources import resource_stream
./preprocess/../vendor/pytz-2012h/pytz/__init__.py:35: UserWarning: Module redis was already imported from ./preprocess/../vendor/redis-py/redis/__init__.pyc, but /usr/local/lib/python2.7/site-packages is being added to sys.path
  from pkg_resources import resource_stream
2013-04-25 16:34:35.700845: Init...
Cannot connect to Mongo database: pymongo is not installed!
The program exited via sys.exit(). Exit status:  1
> /root/flow-inspector/preprocess/preprocess.py(10)<module>()
-> """

What's interesting is the module can be imported by MongoBackend.connect() when I add import pymongo to the original executing file.

This might be something not unique to flow-inspector, but it seems odd that it only occurs within this app.

The following is also interesting:

adding print sys.path before the try statement in MongoBackend.connect() reveals:

['./preprocess/../lib', './preprocess/../vendor/bson-0.3.2', './preprocess/../vendor/pytz-2012h', './preprocess/../vendor/redis-py', './preprocess/../vendor', './preprocess/../config', '/root/flow-inspector/preprocess', '/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

Note:

# ls -al /usr/local/lib/python2.7/site-packages/pymongo/__init__.py
-rw-r--r--. 1 root root 2711 Apr 25 16:24 /usr/local/lib/python2.7/site-packages/pymongo/__init__.py

Thanks Lothar!

Donut-Charts for ports and IPs are not correct

The donut charts display incorrect values. Instead of showing the overall distribution of ports and IPs, they only show the TOP 30 IPs/Ports (without the share of traffic that has been produced by the others).

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.