The process instance start time, end time, starter and status information is output as an audit log.
Settings
There is no particular need to configure settings for the collection of process instance audit logs. The settings will be complete at the point when the installation and setup of the Systemwalker Runbook Automation Management Server are complete.
Usage
To obtain the process instance audit logs, execute the get process instance audit information command (swrba_audit). Refer to the Systemwalker Runbook Automation Reference Guide for information on the swrba_audit command.
Example)
swrba_audit |
The process instance audit information that can be obtained using the swrba_audit command without any options will be the process instance information that was complete after the swrba_audit command was executed without any options the previous time.
Output Location
The process instance audit log is output to the following process instance audit information file. Refer to the Systemwalker Runbook Automation Reference Guide for information on the process instance audit information file.
[Windows]
[Systemwalker Runbook Automation Management Server installation directory] \var\audit\swrba_audit.log |
[Linux]
/opt/FJSVswrbam/var/audit/swrba_audit.log |
10 generations of the process instance audit information file are managed, each generation being 10MB.
The trigger for the generation switchover is when the file exceeds 10MB.
A number between 1 and 9 is added to the ' swrba_audit' part of the file name each time there is a generation switchover, so the file name becomes swrba_audit.log --> swrba_audit1.log --> swrba_audit2.log... --> swrba_audit9.log.
Once 10 generations (100MB) is exceeded, the oldest file (swrba_audit9.log) is deleted.
Log Output Format
The audit log is output in the following format. One process instance information is displayed as one record.
"process instance start time","process instance starter","process instance name","process instance status","process instance end time","activity name","transition date and time","person responsible","task status","selection result",...,"exit node" |
Process instance start time: The time at which the process instance was started is displayed.
Process instance starter: The user ID of the user that started the process instance is displayed.
Process instance name: The process instance name is displayed.
Process instance status: The process instance status is displayed.
closed
Only "closed" is displayed. Except of "closed", such as "aborted", or "error" status is not displayed.
Process instance end time: The time at which the process instance was ended is displayed.
Activity name: The activity name is displayed.
Transition date and time: The date and time of the transition are displayed for the activity. If processing is not translated to activity, blank string is displayed.
Person responsible: The user ID for the assigned task is displayed. If processing is not translated to activity, blank string is displayed.
Task status: The task status is displayed.
COMPLETED
INITIAL: The processing is translated to activity.
Selection result: The selected arrow name is displayed
End node: The end node name is displayed.
Example of the output
The example below shows the output of the audit information for the process instance with the name "Sample-1".
"2011-05-11 14:50:32.460","swrbaadmin","Sample-1","closed","2011-05-11 14:53:27.161","Activity1","2011-05-11 14:53:27.033","swrbaadmin","COMPLETED","Arrow2","Exit1"
Example of the operation
The example below shows the recommended operation.
Using an operating system feature such as Task Scheduler (Windows) or cron (Linux), configure the settings so that the get process instance audit information command is executed at fixed intervals. The get process instance audit information command is executed without any options.
When this command is executed without any options, any process instance audit logs output between the previous time the command was executed without any options and when the command is executed this time will be collected.
After the command was executed, create another directory using a name such as the date, create the process instance audit information file (if there are multiple files, create all of them) then back up the file (or files) in the directory that was created.
Delete the process instance audit information file that was output in 1. (if there are multiple files, delete all of them).
Repeat steps 2 and 3. Each time the command is executed.
Point
The process instance audit information file content is managed as 10MB x 10 generations. Design so that the execution of the get process instance audit information command once does not result in 100MB being exceeded.
Execute test operations, and check/adjust the get interval.
By specifying the -closedafter and -closedbefore options in the command, it will be possible to get the process instance audit logs separately at specified intervals.