Audit Log
An audit log is a set of records for the sequence of NPS toolkit web activities. Log entries includes host IP, path information, remote address, request method, response, server name, topology name and user login information.
Location of the audit log file in the NPS toolkit host:
/var/nps/logs/audit_log
Audit log for user creation and token generation is present in the
nps_audit.log
file.
The content of the log file are as follows:
2019-02-19 12:48:07,826 nps.audit_log audit_log.py 72 INFO Logged in user info with performed action:
{
"HTTP_HOST": "XX.XX.XX.XX",
"PATH_INFO": "/nps/v2/tokens/",
"REMOTE_ADDR": "XX.XX.XX.XX",
"REQUEST_METHOD": "POST",
"RESPONSE": "201 CREATED",
"SERVER_NAME": "XX.XX.XX.XX",
"TOPOLOGY_NAME": "NA",
"USER": "admin"
}
Audit log for all other NPS toolkit web activities are present in the
<topology_name>_audit.log
file. The content of the log file are as follows:
2019-02-27 06:46:46,438 nps.audit_log audit_log.py 72 INFO Logged in user info with performed action:
{
"HTTP_HOST": "XX.XX.XX.XX",
"PATH_INFO": "/nps/v2/",
"REMOTE_ADDR": "XX.XX.XX.XX",
"REQUEST_METHOD": "POST",
"RESPONSE": "201 CREATED",
"SERVER_NAME": "XX.XX.XX.XX",
"TOPOLOGY_NAME": "dhcp-test",
"USER": "admin"
}