bitkeks / python-netflow-v9-softflowd

PyPI "netflow" package. NetFlow v9 parser, collector and analyzer implemented in Python 3. Developed and tested with softflowd
https://bitkeks.eu/blog/2016/08/collecting-netflow-v9-on-openwrt.html
MIT License
116 stars 59 forks source link

Add sqlite3 as alternative storage #22

Open bitkeks opened 4 years ago

bitkeks commented 4 years ago

Until now a custom gzip storage format was used for the collector. This approach is based on the first implementation where a simple JSON dict was exported to a file. In the future, sqlite3 might bring more stability to persistent storage.

Note: Postgres is also a candidate, but I do not want to introduce external dependencies (psychopg2, sqlalchemy) just yet. Better focus on small footprint and stability.