...
Server side the 'mgmnt' Twisted based Python 3 server application receives log messages and stores them in a database table. 'mgmnt' also provides a simple webserver with some openNSA management/monitoring pages.
The database table contains the following columns:
- lid: integer: primary key of this logrecord
- guid: varchar: GUID uniquely identifying the logrecord. Use this to remotely identify a logrecord.
- logtime: timestamp: timestamp (utf) the logrecord was stored in the database
- systemtime: timestamp: timestamp (utf) the log message was generated in the openNSA node
- host: varchar: hostname/ip address of the host that send the logrecord
- system: varchar: 'system' name as defined in the openNSA 'system' configuration variable
- module: varchar: 'system' name used in the 'log.msg' statement.
- message: text: The text representation of the log message
- jsonargs: text: JSON representation of the extra parameters passed to the 'log.msg' statement
The 'mgmnt' Twisted application is part of the onsa-test repository (https://code.geant.net/stash/projects/CCS/repos/onsa-tests) and can be started with the following command:
...