Maximum query size has been raised from 2048 to the hardcoded
constant CONST_MAX_SQL_QUERY_LEN that is currently equal
to 8192.
A warning message is generated when attempting to execute
queries longer than the maximum allowed values that would
be truncated.
Fixes#511
Interface flows are now stored using integer interface ids rather
than interface names. This speeds up queries.
A migration code has also been introduced so that old MySQL table
format is migrated and old data does not get lost.
This also fixes#460
The limit in the number of rows that can be retrieved from MySQL
has been made configurable. This is useful especially when downloading
historical flows in txt format.
Existing MySQL naming convention makes two separate tables for each interface monitored. Table names are flows4_<ifid> and flows6_<ifid>. Ifid is a unique integer identifier chosen by ntopng.
Present commit simplifies this structure and make just two tables, namely flows4 and flows6, and add an extra column to store the interface names. I do not think that storing the integer interface id is good: it is just a number that only make sense inside ntopng. Using interface names would yield more (re)usable data.
Committed code transparently migrates old tables into the new ones. Old flows are migrated into the new tables, and old tables are dropped.
ntopng instance name can be specified using command line parameter
--instance-name. If no parameter is specified, instance name defaults
to the current host name.
this information is exported to MySQL and ES.
- Added support for MariaDB (in addition to MySQL)
- Implemented reconnection if server/client disconnects
- Added support for both host and Unix socket connection to the DB