Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Business Audit log - recommended library or approach? [closed]

do you know any good Java library for audit logging? Or at least good book/article to help choose good approach to build audit log for an application?

Library requirements:
- define common audit metadata (userId, time, IP, ...)
- define audit message types (transaction sent, message received, ...)
- lock/sign individual audit messages (for non-repudiation)
- search audit log based on metadata
- etc.

Edit:
I'm not looking for automated solution, I'm perfectly happy with calling something like:

AuditEvent event = new TransactionSentEvent(userId, account, amount, ...)
AuditLog.audit(auditEvent);

The point is to have the infrastructure behind it - safe storage to database, non-reputability etc.

like image 478
krtek Avatar asked Sep 23 '10 12:09

krtek


People also ask

Which is a best practice for audit trail and logging?

i) Restrict the access level of configuration and program-level resources. ii) Apply the principle of Secure Default. iv) While processing, do not save sensitive information on the file system of the server. v) Ensure server time is synchronized.

What should be logged in an audit trail?

An audit trail should include the information needed to establish what events occurred and what person or system caused them. That event record would then specify when it happened, the user ID associated with it, the program or command that initiated the event, and the result.


1 Answers

So, if you are looking for a framework, you could try logback-audit. It is by the folks who are behind the Java logging library, logback.

like image 143
jkl Avatar answered Sep 21 '22 00:09

jkl