-
1. Re: prototype of a rhq next server component that lives on the bus
mazz Dec 23, 2014 3:10 PM (in response to mazz)I don't have anything right now that queries/reports the audit records - just a matter of adding query code, perhaps a gui front end.
I added AuditQueryServlet, so you can see a simple html table with the audit records. So after you submit several audit records (via curl, for example), you can point your browser to http://localhost:8080/audit/AuditQueryServlet (with the optional ?maxRows=# parameter if you want to limit the size of the return set) and you'll see a table such as:
ID CorrelationID Subsystem Timestamp Message Details ID:mazztower-38863-1419364736135-5:1:1:1:1 null mysub Tue Dec 23 14:59:08 EST 2014 mymsg1 {key2=value2, key1=value1} ID:mazztower-38863-1419364736135-5:3:1:1:1 null mysub Tue Dec 23 14:59:57 EST 2014 mymsg2 {key2=value2aa, key1=value1} ID:mazztower-38863-1419364736135-5:4:1:1:1 null another Tue Dec 23 15:00:08 EST 2014 mymsg3 {key2=value2bb, key1=value1} Total rows: 3
So this audit server component prototype can now accept any audit records from any rhq.next client via the bus and then can provide a simple report of the audit records that resulted. The distribution file is built simply via mvn that produces a .zip file (if you enable the -Pdev profile when you build in mvn, you will even get that unzipped for you under target/ so you can run it right out of there).