Sample Compliance report with filters, groups, sections, calculations, and summarization
This example demonstrates how to create a Compliance report that shows the top five rules that failed across templates.
Report name | Features used |
---|---|
Top five rules failed across templates |
|
To create a Compliance report with filters, groups, sections, calculations, and summarization
- Launch Query Studio from the BMC Decision Support for Server Automation portal.
- Select a package (for example, BladeLogic) from the list of available packages.
- Click the Run Report link.
- Click the Preview with No Data link.
- Click the Insert Data link.
- Open the Compliance folder and drag the following query items to the right pane:
- Compliance Template(Policy)/Template(Policy) Name
- Compliance Rule/Rule Name
- Compliance Server/Server Name
- Compliance Job/Job Run Start Time
- Compliance Rule Result/Rules Non Compliant
- Compliance Rule Result/Rules Indeterminate
- Apply the Sum function on the Rules Non Compliant and Rules Indeterminate columns as follows:
- Select the columns and click Calculate on the toolbar.
- From the Operation type list, select Arithmetic.
- From the Operation list, select + (sum).
- Click Insert.
A new column, Rules Non Compliant + Rules Indeterminate, is added.
- Apply a filter on the Rules Non Compliant + Rules Indeterminate column as follows:
- Select the column and click Filter on the toolbar.
- In the From and To fields, type 1.
- Click OK.
- Apply the Count function on the Server Name column, as follows:
- Right-click the column and select Summarize.
- In the Summarize dialog box, click Advanced.
- From the Summary for cells list, select Count.
- From the Summary for footers list, select None.
- Click OK.
- Repeat step 9 for the Job Run Start Time column.
- Apply the Count function on the Rules Non Compliant + Rules Indeterminate column, as follows:
- Right-click the column and select Summarize.
- In Cell values, verify that the Summarize first, then apply the calculation option is selected.
- In Footers, select the No summarization in the footers option.
- Click OK.
- Sort the Rules Non Compliant + Rules Indeterminate column in descending order.
- Click the Change Layout link.
- Click the Set Web Page Size link.
- In the Set web page size dialog box, from Number of rows, select 5.
- Select the Show row numbers check box.
- Click OK.
- Delete the following columns without deleting the associated filters:
- Job Run Start Time
- Rules Non Compliant
- Rules Indeterminate
- Rules Non Compliant + Rules Indeterminate
- Click the Run Report link.
- Click the Run with All Data link.
- Save the report.
The following figure shows a sample Compliance report created by using this procedure:
Related topics
Sample-reports-demonstrating-Query-Studio-features
Creating-reports-with-Report-Studio
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*