Overview
When you have been using log exporter you may notice that if you change some settings, for example "max events per folder" as instructed in Compliance Kit upgrade document, you will not see older events anymore when using audit log viewer in M-Files desktop. In this article we will explain how to re-export all events with Compliance Kit Log Exporter in case you need to do it.
Cause and Reason
In the Compliance Kit upgrade document is said that you should change "max event per folder" value from 0 to 10000. Reason for changing that value to 10000 is that value 0 puts all events of one day into a one folder while any other value adds an additional "id-value" folder under the "day"-level. Depending on the extent of daily activity in the vault this can mean either tolerable or a huge number of files in same location when using 0. This can cause slowness in listing the folder content and it might have a slight effect on export speed and will influence reading speed (obviously depends on what tool is used).
If the value is changed (any change, not just from zero to something), it changes the path where any one file should go. Compliance Kit does not move files, but any event, still at the server, and which the exporter tries to export, will get re-exported since the "new" location does not yet have a file. This uses time (exporting is slow) and causes duplicate files (and you may want to delete the old ones).
The exporter stores the export position and does not start from the very beginning at each go online so, you might not get "re-export" for all events still at the server. But if that is wanted, then the export-position value in Named Value Settings (NVS) can be cleared.
Depending on how the exported files are used, a change of their paths might cause an issue. For example, the built in Log Event Viewer in M-Files desktop client is only capable of using the current export config, which means that as soon as the value is changed, it no longer finds the events exported with earlier configuration.
Solution
Please see Configuring Custom Vault Data user guide page for more details about NVS usage.
In the Namespace Registry settings fill in all required fields as example image below shows. Value for the Namespace field is M-Files.ComplianceKit.LogExporter.SharedSettings and after all fields are filled press Save.
After saving Namespace Registry values you should see below of that Named Values settings with related values. When going to configuration tab and under LatestSecureEventId you can see value that is pointing to latest event exporter has exported. If you need to re-export all events change this value to 0 and save settings. During next export you should get all events exported.
Reference Documents
Upgrading M-Files Compliance Kit
Compliance Kit - Log Exporter - Functional Description
Compliance Kit - Configuration Manual (Log Exporter in chapter 4.6)
