<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>I agree with Wolfgang on "it is common sense to have audit logs for a real application", and of course the way to do it with listeners.<br><br>Most of time, for my experience, these logs (which rule has triggered, what are the changes made (insert, retract, update...) ...) are simply dumped in the main application log file, and follow the same life cycle (deleted after some fixed time). Except for some really critical application that needs a strong justification of their results (like something doing quotations, or computing salaries), I don't see the utility of keeping all audit for all transactions in a production evironnement.<br>But for debug phase (and also users training phase), it is really useful.<br><br>In your mail, I see two distincts questions :<br>&nbsp;&nbsp; - Should you add in your system some audit functionnalities to log what happend somewhere : I would say yes<br>&nbsp;&nbsp; - Should you keep all this stuff somewhere, and how to store and how to format these information : I would say that raw logging is enough for debugging, but not if you have other requirements (like giving access to this to non IT rules author, use the audit result in a automated alert system, do report on rules usage, being able to answer to claims for a long period of time ...).<br>&nbsp;<br><br><hr id="zwchr"><div style="color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"Wolfgang Laun" &lt;wolfgang.laun@gmail.com&gt;<br><b>À: </b>"Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br><b>Envoyé: </b>Jeudi 9 Août 2012 20:31:29<br><b>Objet: </b>Re: [rules-users] Audit Logs: Business Case? Any pearls of wisdom?<br><br>If you need to keep track of changes in your WM database, a property change<br>listener is one solution. In addition with an AgendaEventListener listening to<br>rules being fired you should be able to document what was done and by which<br>
rule. I'd say it is common sense to have this in a business application that<br>uses rule to modify data.<br><br>There are simpler scenarios such as validating or analyzing data where it<br>might not be necessary (after testing).<br>
<br>-W<br><br><div class="gmail_quote">On 9 August 2012 20:14, BenjaminWolfe <span dir="ltr">&lt;<a href="mailto:benjamin.e.wolfe@gmail.com" target="_blank">benjamin.e.wolfe@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello all,<br>
<br>
My company is just venturing into Drools, and I'd like to help make the<br>
endeavor as successful as possible. &nbsp;We'll be incorporating the rules engine<br>
into a broad range of use cases (depending on how successful the first few<br>
are, of course), with a wide range of business users, most of them using the<br>
Guvnor interface.<br>
<br>
It seems to me we'll want some sort of audit log in the form of a<br>
transaction-level table, simply to answer the question (in any given case,<br>
for any reason) of /what happened?/. &nbsp;On the other hand, a transaction-level<br>
table -- for a whole set of rules -- for a *lot* of facts (built up over<br>
time) -- could get pretty big. &nbsp;And our tech folks might not want to<br>
allocate resources to store and maintain the table. &nbsp;So I have a couple of<br>
questions for the more experienced Drools users:<br>
<br>
1. &nbsp;How might you build a solid business case for such logging? &nbsp;Do you have<br>
any specific examples of the problems an audit log would solve, or the<br>
benefits it would create?<br>
2. &nbsp;How common is it to keep audit logs? &nbsp;Do almost all of your projects<br>
include them, almost none, or somewhere in between?<br>
3. &nbsp;Maybe I'm missing some nuance. &nbsp;Do you include audit logs of some rules<br>
fired, in some applications, but not others? &nbsp;Any other nuggets of wisdom?<br>
<br>
Thanks everyone,<br>
Benjamin<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Audit-Logs-Business-Case-Any-pearls-of-wisdom-tp4019073.html" target="_blank">http://drools.46999.n3.nabble.com/Audit-Logs-Business-Case-Any-pearls-of-wisdom-tp4019073.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>
<br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></div><br></div></body></html>