Viewing automation policy runs history
To view policy run history
- Click History and view the following information:
- Total number of successful, running, failed, waiting, and rejected automation policies
- By default, if a policy run is in a running state for more than two days, it is marked as failed.
- Start date and time
- Automation policy name
- Execution Mode: Manual or Automatic
- Status
- Duration taken for the policy run
- Ticket ID: Click the change request ID to view the Ticket ID, Status, Approver name, and the date of approval for the change request. After the change is approved, the policy runs on the target applications.
- The instance ID of the policy run
- Event ID: Double-click the Event ID to copy it to the clipboard. Use the copied Event ID to simplify the search for specific records in BMC Helix Intelligent Automation.
- (Optional) Click the column selector
to select or clear the columns that you want to display on the History page.
- To view additional details about a policy run, click a policy name.
In the Policy Details dialog box, the following details are displayed:- The actions executed during the policy instance execution in the left pane,
The status of the action and other details are in the right pane in JSON format.
For a failed policy, the reason for the failure is displayed in the right pane.
In the following example, the Policy Details dialog box shows the status and the ticket details when a Create or Update Trouble Ticket policy is run.
Similarly, the following image shows the details of the information event created in BMC Helix Operations Management as part of the trouble ticket creation.
Policies that consist of Ansible Tower and BMC Helix Innovation Studio actions execute the actions asynchronously. Hence, after the actions are executed in the applications, the policy details dialog box shows the updated status.
- Click Close.
Timeout and retention period
A policy run fails if one or more actions included in the policy fail or time out. By default, the timeout period for an action is two days.
The default retention period for a failed or successful policy instance is 90 days. After 90 days, these instances are deleted and no longer displayed on the Policy Runs page.
To search for policy runs
For a basic search, type the policy name or the complete instance ID. The search results are displayed as you type the policy name (minimum 4 characters) or the instance ID.
For an advanced search, perform the following steps:
- Click Advanced filter and do one of the following options:
- From the available filters, select a filter and choose any of the filter options:
- Start Date: Select the start and end date
- Time: Select the time for which you want to search the policy run
- Execution Mode
- Status
- Policy Tags: Requires a key-value pair to search based on the tags added to a policy.
For more information about tags, see Creating-automation-policies.
- Enter the filter name in the text field, or to build a search expression, type the filter name and select the option from the list of available options.
For example, if you start typing Status, status options appear.
- From the available filters, select a filter and choose any of the filter options:
- Click Apply filters.
The policy runs that match your filters appear. The numbers in the total number widgets also change based on the specified filters.