qradar-audit-logs-middleware

3.0.1 • Public • Published

IBM Bluemix DevOps Services - node-qradar-audit-logs-middleware

For more information on IBM Bluemix DevOps Services, see the Bluemix Public IDS Experiment.

This is one of hundreds of IBM Open Source projects at GitHub.

node-qradar-audit-logs-middleware

Middleware to log all requests that pass through and aspects of the response.

To upgrade / install

  • npm i --save qradar-audit-logs-middleware

Pre-requisites

  • Your app must use express as the framework.

To use

var auditLogMiddleware = require('qradar-audit-logs-middleware');
// init express etc
// add this middleware at the appropriate point (after auth but before the middleware that handles the important routes):
app.use(auditLogMiddleware(log4js.getLogger('audit-logs')));

For ideal use

  • Ensure that the fetch-auth middleware is used before this, and that it tacks on the TIAM userinfo object at req.user

Recommended logging library

We use this library in conjunction with log4js, so using node-log4js is recommended.

License

The MIT License (MIT)

Contributing

Contributions are welcome via Pull Requests. Please submit your very first Pull Request against the Developer's Certificate of Origin, adding a line like the following to the end of the file... using your name and email address of course!

Signed-off-by: John Doe <john.doe@example.org>

Package Sidebar

Install

npm i qradar-audit-logs-middleware

Weekly Downloads

1

Version

3.0.1

License

MIT

Unpacked Size

19.7 kB

Total Files

12

Last publish

Collaborators

  • hermansb
  • melickm
  • curtispd