1. Enable audit creation on your database system. It's different in each RDBMS so you have to work with your DB admin on that.
2. Collect the log - as far as I remember, the MSSQL stores audit logs in a separate database so you have to use dbconnect to pull those entries from the database. MySQL I think simply writes audit to a flat text log file so you'll have to set up a file monitor input.