|
If the Direct Persistence implementation is active, you can also export online audit data from the database, using the ExportOnlineAuditData service. This service has a query option that you can use to filter and sort the exported data.
|
Parameter
|
Description
|
Base Type
|
---|---|---|
locale
|
The abbreviation of the language name in which to return the results. (STRING). For example, fr for French or zh_CN for Chinese (China). For a list of locales supported by ThingWorx, refer to Supported Locales.
|
STRING
|
targetRepositoryName
|
The name of the file repository Thing where the output file containing localized audit entries should be stored.
|
THINGNAME
|
targetPath
|
The location to which the output file should be written.
|
STRING
|
targetFileName
|
The name of the output file in which the localized audit data should be stored.
|
STRING
|
startDate
|
The date and time of the first audit entry that you want to export. All audit entries with a timestamp after this audit entry and before the endDate are exported.
|
DATETIME
|
endDate
|
The date and time of the last audit entry that you want to export. All audit entries with a timestamp before this audit entry and after the startDate are exported.
|
DATETIME
|
Start Date
|
End Date
|
Content of Export
|
---|---|---|
2020-02-03 18:50:03.000 (a specific date and time)
|
2020-02-03 19:50:03.000 (a specific date and time)
|
All of the online and offline data from the start date to the end date, which for this example, are the same date (2020-02–03), and an hour’s worth of data (from 18:50:03.000 through 19:50:03.000.
|
null
|
2020-02-03 19:50:03.000 (a specific date and time)
|
All of the online data and any offline data that is older than the end date and time (2020-02-03 19:50:03.000). With the start date set to null, the export may contain a large volume of audit data, depending on the actual date that offline data started being retained.
|
2020-02-03 18:50:03.000 (a specific date and time)
|
null
|
All of the online data and any offline data between the start date and time and the current date and time, which is specified by setting the end date to null.
|
null
|
null
|
ALL audit data, online and offline. Not recommended, as this could take a very long time.
|
Property
|
Implementation?
|
Description
|
---|---|---|
auditCategory
|
Both
|
The name of the category of audit message. The examples above show different categories:
• Direct Persistence — System category
• Data Table — Modeling category
For information about audit categories, see Audit Categories.
|
application
|
Direct Persistence only
|
The name of the application that generated the audit message. In the Direct Persistence example above the audit messages are generated by the core ThingWorx Platform, so the value is set to ThingworxCore.
|
sourceType
|
Both
|
The type associated with the application that generated this audit message (source). The examples above show different source types, which reflect the auditCategory for both implementations and for Direct Persistence the application:
• Direct Persistence — Subsystem
• Data Table — ModelTagVocabulary
|
source
|
Both
|
The ThingWorx application or an executable that generated this audit message. The examples above show different ThingWorx applications:
• In the Direct Persistence example, the source is Audit Subsystem.
• In the Data Table example, the source is IntegrationTesting.
|
id
|
Both, with format differences
|
Direct Persistence implementation — The auto-generated database id for the application that generated the audit message.
Data Table implementation — The GUID for the application that generated the audit message.
|
message
|
Both
|
The text of the audit message.
|
user
|
Both
|
The login name of the user who was running the application when the audit message was generated.
|
timestamp
|
Both
|
In epoch time, the date and time that the audit message was generated.
|