fishtech Posted June 13, 2019 Posted June 13, 2019 Hi For reasons of accountability, Supervisors want to view a table of syncs undertaken by employees. What is the best way to record a log of each time each user syncs (preferably recording the version of the database they are using) so thit can be presented to Supervisors? Thanks, ft.
nick360Works Posted June 17, 2019 Posted June 17, 2019 Hi fishtech, In the MirrorSync table, there are fields called lastSuccessfulTimestamp, databaseVersion, and lastUsername or (get(AccountName)) that you can use to track those metrics. If you create a script that performs the MirrorSync script, and tracks the last values for those fields on a successful sync, you can keep a record of those in a separate table.
Jesse Barnum Posted June 18, 2019 Posted June 18, 2019 Following up on Nick's suggestion - Assuming that you're using XML (as opposed to JDBC), the place to do this would be in the didSync method of the customization script.
fishtech Posted September 25, 2019 Author Posted September 25, 2019 (edited) So to clarify the process would be... 1. Create a new Log Table to track meta data of the syncs 2. Using the didSync section of the customization script ON EACH SPOKE to script a 'new record' in the Log Table and populate using the meta data fields/values mentioned above. 3. Sync Log Table to the server Do I have this correct? If so the data on the server will always be 1 sync behind, but I guess this is acceptable. Or is there a way to get the Log data directly into a table on the server? Thanks, ft. Edited September 25, 2019 by fishtech
Recommended Posts
This topic is 1942 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now