openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #08373
Audit Trail
Hi There,
I'm looking at implementing some form of Auditing/logging for various components, with the main aim of having a full audit trail of all user actions, for various legal, and general troubleshooting/support purposes.
Firstly, I'm wondering if there's already an implementation of something like this, or an effort towards it. I've had a look, but didn't see anything relevant.
Secondly, I'm trying to work out the best approach to this. My first guess would be a WSGI middleware on all the APIs that logs every request, either to a message queue for log service to pull and put into a DB, or put it directly into a DB.
If done as middleware, I envisage it being quite a simple, lightweight one, as it only has to pull the needed data from the request before sending it on.
Any and all comments are welcome, I stumbled onto this idea this morning, so I've only had a few hours thinking about it while working on other things.
Thanks
/Kieran