|
PTC strongly encourages you to use the Direct Persistence implementation because the Data Table implementation will be deprecated in a future release of ThingWorx Platform. In addition, the QueryAuditHistory service will be deprecated in favor of the QueryAuditHistoryWithQueryCriteria service.
|
Parameter | Description | Default Value | Valid Values |
---|---|---|---|
Enable Direct Persistence for Audit Subsystem | The switch between the Direct Persistence implementation and the Data Table implementation of the Audit Subsystem. Note that the Direct Persistence Provider works with PostgreSQL and MS SQL databases. | The Direct Persistence implementation of the Audit Subsystem (the check box is selected). | Check box selected — Direct Persistence implementation of the Audit Subsystem is used. Check box cleared — Data Table implementation of the Audit Subsystem is used. |
Audit Persistence Provider | This field cannot be changed. The default Persistence Provider for the ThingWorx Platform is used as the Persistence Provider for the Audit Subsystem. For the Data Table implementation, PostgreSQL is recommended for best performance. For the Direct Persistence implementation, use PostgreSQL or MS SQL. | ThingworxPersistenceProvider | The Persistence Provider for the Audit Subsystem is always the default ThingWorx Platform Persistence Provider. The Audit data is always persisted in the same database where all the other types of ThingWorx data are located. |
Archive Audit Chunk Size | The number of rows that will be archived before a new chunk file is created Over time, you may want to adjust the size, depending on volume, size of audit messages, and performance of the archive process. | 50000 | This setting can be any value greater than or equal to 10000 rows. |
Maximum entries for online data (maxEntriesOnlineAuditData) | Data Table implementation — The maximum number of rows of online audit data that a Data Table can hold. The value is also used for archive files, the maximum number of rows to write to an archive file. Direct Persistence implementation — The maximum number of rows of online audit data that an archive file can hold. For details on how this parameter is used by theArchiveAuditHistoryDirectPersistenceand ArchiveAuditHistory (Data Table implementation) services, refer to Archiving and Purging Online Audit Data (Direct Persistence)or to Archiving and Purging Online Audit Data (Data Table) | 500000 rows. | Positive numbers (integers) only. A negative value is not allowed. |
Highest value that can be set for maxItems parameter for the QueryAudit History service | The maximum number of rows that can be set for the maxItems parameter of the QueryAudit History service. | 5000 | This value must be greater than or equal to 500 (N). The ThingWorx base type of this setting is INTEGER. |
Number of days of online audit data to maintain. | The number of days to keep audit messages online. This value is used by the archive operation of the subsystem to determine which messages should be moved to the offline repository of the audit subsystem. Data that is older than this number of days is first copied to the offline storage. Then it is removed from online storage with a purge operation. More information can be found in the Archiving and Purging Audit Data topic and the Security for Audit Activities topic. | 60 days. | INTEGER values only |
To view the subsystem values while it is running, go to > . |