pub.monitor.archive:serverArchive
Archives or deletes server data from the PRA_ERROR, WMSECURITY, WMSESSION, WMTXIN, and WMTXOUT tables in the IS Core Audit Log database component. Server data includes Integration Server server, session, and guaranteed delivery log entries, and error log entries that are not associated with logged processes, services, or documents (for example, errors that occur during startup or during the run of unlogged processes, services, activations, and documents).
Input Parameters
The following table lists the input parameters.
todate | String Optional. Start date for the period to keep the data in the IS Core Audit Log database component. The period ends with and includes the current date. Use the format yyyy-mm-dd hh:mm:ss. Supply either todate or days. Do not supply both. |
days | String Optional. Number of days to keep the data in the IS Core Audit Log database component, ending with and including the current date. Supply either todate or days. Do not supply both. |
archiveAction | String Optional. Indicates whether to archive or delete the data. ARCHIVE Default. Copy the data from the IS Core Audit Log database component to the Archive database component and delete the data from the IS Core Audit Log database component. DELETE Delete the data from the IS Core Audit Log database component without first archiving it. |
batchSize | String Optional. This parameter is ignored. |
Output Parameters
The following table lists the output parameters.
message | String Message that indicates the success of the archive or delete action. |
errorMessage | String Errors that occurred during the archive or delete action. |
Usage Notes
You can use this service with Integration Server Administrator to archive or delete data automatically, at specific times or intervals. To do so, build a service that calls the archive or delete service and sets its input parameters, then run the wrapper service as a scheduled task from Integration Server Administrator. For instructions on scheduling services to run at specific times, see webMethods Integration Server Administrator’s Guide.
Examples
todate parameter: Suppose the current date is September 30 and you want to archive or delete data that was logged more than 15 days ago (that is, before September 15). You would specify this parameter as
2003-10-15 00:00:00.
days parameter: Suppose the current date is September 30 and you want to archive or delete data that was logged more than 15 days ago (that is, before September 15). You would specify this parameter as
15.