Skip to main content

How to Set Up auditing

Updated over 2 months ago

Auditing allows you to keep track of any additions, changes, or deletion that are made to files.

Note: This will not ever capture any “past data”. Once you configure auditing on a database table, COINS will begin capturing data moving forward. There is no way to go back and capture data before auditing was set up.

  1. Go to the “Audit” folder in the module you are working in and open up “Configuration.” For this example, we used Job Status > Audit > Configuration.

    Figure 1: Job Status Audit Configuration

  2. On this list, select the database table that you want to use by clicking open its folder.

    • You cannot add additional database tables here. If the table you want to audit is not on this list, consider that it may be under the “audit” folder in a different module.

    • You can use System > System Inquiries > Database Inquiry to see what database tables exist and what fields exist on each table.

  3. Open the database table you want to audit and add the field(s) that you want to audit:

    Figure 2: Opening Audit Table

    • You can also use the action bar to create company-specific rules for auditing.

    • “Number of Days History” is the length of time COINS will store the audit records for.

    Note: Audit records are never automatically deleted. When you run Audit > Delete, COINS will remove records that are older than these many days.

    Note: If there is nothing in the Audit Field box, then you will not be able to Audit that selected field in the next steps

  4. Open the Standard Cost Types record in order to Audit these listed fields. This is found under Job Status > Setup > Setup Maintenance > Standard Cost Types.

    Figure 3: Standard Cost Type Audit

  5. For example, when you open a Standard Cost Type record such as Equipment, you should now see an Audit icon on records of this type on the bottom left.

    Figure 4: Audit Icon

  6. Selecting the Audit Icon will bring up the audit trail for this record:

    Figure 5: Audit Trail

    • By default, this shows the audit trail for the last field you “touched” on this record.

    • In the above screenshot I am seeing audit trail on the “short description” field. To see the audit trail on “billing item,” simply click on that field as if you were going to edit it, and then click the Audit button

    • Note the field name at the top of the audit is jsc_item; this is the “billing item” field

  7. In order to process an audit across all records (rather than just seeing the audit trail on a single field of a single record as shown above), you will need to run Audit > Processing. Under Job Status (at the bottom of the list) open Audit > Processing > Cost Type.

    • The audit number will be automatically filled in. The next time I process auditing on this field, the audit number will be 2

      Figure 6: Audit Processing

    • By clicking the Process button on this screen, it will produce a report which simply shows how many records were processed:

      Figure 7: Audit Processing Report:

  8. You can now generate an audit report for this database table. Under Job Status > Audit > Reports > Cost Types and this will bring up the selection fields to run the audit.

    Figure 8: Audit Report:

    • Note that you will be running this report for a particular audit number. COINS will default in the most recent audit #

    • You can select to sort either by field name or by sequence (lists the changes made to all fields in chronological order)

    • You can select a date range, specify a set of fields, specify an individual cost type record, or specify a user to see only changes made by that user.

      • For example, you can leave all fields blank except User to see every change a specific user made to any standard cost type record.

      Figure 9: Audit Report Sample:

  9. After processing this audit trail, I made a single change to the standard cost type 112 record. The description was changed slightly, Subcontract to Subcontractors.

    • Run “process” to generate audit #2 for this table.

    Figure 10: Audit Processing After Change:

  10. Audit #2 has only the record of the one change that I made. On the last line you can see when and where the change was made, “Old” to “New.”

    Figure 11: Audit Change:

  11. Run the audit report open-ended for audit #2:

    Figure 12: New Audit Report:

  12. This report will only show the one change:

    Figure 13: Audit Report Sample:

    • You can still run the audit report for audit #1, but the selection criteria will default to the latest audit, which will only contain the changes that were made since the previous time the audit processing was run

    • It is very useful to use the report scheduler to run the “processing” function at a regular interval. Scheduling this report to run every month on the last (or first) day of the month is probably best practice – this will tie each audit record to a single month

      • Audit reports can also be scheduled to be run immediately after each audit processing is run… these audit reports can then be saved / archived to preserve audit trails even after records themselves are deleted.


Did this answer your question?