- Jan 31, 2019
-
-
Jan Mach authored
The database migrations for IDEA event database *mentat_events* are now implemented. I have moved this issue to the next release, because there is code already merged in the current development branch that depended performing the migrations on target system. It was a choice of either removing that commit, or going forward with implementation. I have decided to implement it immediately, because this issue is blocking many more features. The implementation is again based on Alembic tool, which is already being used for migrations on mentat_main metadata database. It is however separatelly configured instance, merging both instances into single one would require considerably more amount of research and work. I have also updated accordingly manual pages regarding installation and upgrading. Very important bit of information was stamping the database with latest migration revision after clean installation. (Redmine issue: #4230)
-
- Sep 21, 2018
-
-
Jan Mach authored
I have added prototype periodical anomaly detection scripts created by Pavel Kácha into Mentat package. So far these are just simple shell scripts intended to be executed periodically via cron that will simply use the PSQL utility to query database and send the result via email. Possible improvements might be to envelope these into Mentat script to make use of common configurations. (Redmine issue: #4222)
-
- Sep 20, 2018
-
-
Jan Mach authored
With future improvements of database schema there must be a mechanism for performing database migrations. Problem is we have two databases, one accesed via SQLAlchemy and the second directly via Psycopg2. I have selected to use Flask-Migrate plugin built on top of Alembic to perform metadata database migrations. (Redmine issue: #4230)
-
- Jul 26, 2018
-
-
Jan Mach authored
(Redmine issue: #3443)
-
Jan Mach authored
On busy server the report storage can easily contain hundreds of thousands of files and things can start to get really slow when working with that particular directory. This patch will solve that problem by sorting reports according to the timestamp within the report file name. (Redmine issue: #3378)
-
Jan Mach authored
The previous version was not able to detect that files were indeed successfully installed into target folder. There was a report, that when the script was executed with insufficient permissions, it reported success even when no database files were actually installed. This is fixed now. (Redmine issue: #3387)
-
- Jul 25, 2018
-
-
Jan Mach authored
TODO: Truncation would be much faster. (Redmine issue: #3752) E
-
- Jul 23, 2018
-
-
Jan Mach authored
* Replaced simple prints with Python logging framework. * Added command line argument to start migration with given UTC timestamp (reports and statistics). * Added command line argument for better duplicate ignoration. * Output text improvements for better readability. (Redmine issue: #3362)
- Jun 21, 2018
-
-
Jan Mach authored
* Improved report model to enable parent reports, so we can link extra reports with parent summary reports. * Fixed/improved statistical calculations for reports. * Greatly improved report view visuals. * Greatly improved report search form. This commit contains backwards compatibility breaking features including necesity do alter database schema. (Redmine issue: #3734)
-
- May 29, 2018
-
- May 02, 2018
-
- Apr 27, 2018
-
-
Jan Mach authored
The data migration script was enhanced for quick and little bit dirty fix of invalid string character encoding when converting records from MongoDB to new PostgreSQL representation. The old implementation contained a bug and some strings were not stored in correct UTF-8 encoding. After this patch everything should be UTF-8 in PostgreSQL tables. (Redmine issue: #3752)
-
- Feb 01, 2018
-
- Jan 29, 2018
-
- Jan 28, 2018
-
-
Jan Mach authored
* Added the ability to search according to the 'source|target|detector types' and 'description'. * Added the ability to search according to the host address|ports|types. Host is an alias for Source OR Target. * Minor design improvements in main menu and other page widgets. * Updated mentat-precache.py according to changes mentioned above. * Added new 'allow_empty' feature to mentat-precache.py. (Redmine issue: #3752,#3734)
-
Jan Mach authored
This commit contains following new features: * The PostgreSQL model for IDEA events now contains '(Source|Target|Node).Type' and 'Description' attributes. These are now represented as separate IDEA event table columns to enable better searching. This means, that the table schema changed !!! * The migration script and all necessary underlying functions had to be updated accordingly. * Minor facelift in output of migration script. (Redmine issue: #3752)
-
- Jan 24, 2018
-
- Jan 17, 2018
-
- Jan 16, 2018
-
-
Jan Mach authored
This commit contains following work: * SQL data model for representing IDEA events in PostgreSQL. * SQL schema for IDEA event table and indices. * Event storage service - database abstraction layer for working with IDEA events. * Migration script for converting events from MongoDB collection into PostgreSQL table. This code is based on initial prototype and work done by Radko Krkoš <radko.krkos@cesnet.cz> and he deserves credit for a lot of research and pilot work. (Redmine issue: #3734)
- Jan 05, 2018
-
- Dec 20, 2017
-
- Oct 24, 2017
-
- Oct 23, 2017
-
- Oct 16, 2017
-
- Sep 27, 2017
-
-
Jan Mach authored
This commit represents huge amount of work and introduces new Python-based version of Hawat web user interface for Mentat system. It is built on top of the great Flask framework. Currently it is still work in progress and many features are implemented only as dummy stubs, however the core functionality is almost finished. Following is a list of current key features: * Focus on modular architecture using Flask`s blueprint feature. * Multi-layered configurability (defaults, multiple file overrides). * Plugin system. * Internationalization support. * Support for multiple authentication systems. This commit provides working albeit hollow starting point for future web interface development. IT IS NOT READY FOR PRODUCTION USAGE!!! (Redmine issue: #3734,#3361)
-
- Sep 14, 2017
-
-
Jan Mach authored
-
- Sep 08, 2017
-
-
Jan Mach authored
-
- Aug 28, 2017
-
-
Jan Mach authored
There was a warning when the timestamp file did not exist, which occured when running the fetch-geoipdb.sh script for the first time.
-
- Aug 22, 2017
-
- Aug 04, 2017
-
-
Jan Mach authored
Migration, refactoring and code style unification to support latest PyZenKit and Pynspect libraries. This huge update represents a lot of work on many parts of the system. After major upgrade in PyZenKit and Pynspect libraries it was necessary to bring this project up to date. There were many changes in the code, lot of refactoring and while all this was done, code quality was improved, documentation written and unit tests modified. Many of these changes simply make sure, that the code works with latest versions of both libraries. This commit is supposed to be a single major feature upgrade, after this only smaller commits will follow to polish this huge amount of work. (Redmine issues: #3374, #1017, #3361, #3387, #3443)
-
- Jun 21, 2017
-
- Jun 15, 2017
-