Reports

[edit on GitHub]

The Reports page (Compliance > Reports) provides comprehensive insight into the compliance status of all scanned infrastructure. Scan results for audit cookbook configurations also appear in this view.

Note

If the size of a Compliance Report is over 4MB, then the Reports page may not display as expected.

Reports

Dates in Compliance Reports

The dashboard shows the results of all scans with end times on the current selected day. The current selected day is based on timestamps in Coordinated Universal Time (UTC).

The trend graph provides a historical overview of node status over time. You can change it to display overviews of the past 10 days, 1 month, 3 months, or 1 year.

To view scan reports in the past, users can select a different date from the calendar located in the search bar.

Reports Date Selector

Search Bar and Filters

The Compliance search allows you to view and filter compliance scan results based on a defined set of filters. Wildcard searches on field values will not return suggestions, but they will filter the results. For example, you can search for Node Name: prod* and filter the results to list all the node names that begin with prod.

Chef Infra Server
Filter your results by Chef Infra Server.
Chef Organization
Filter your results by Chef organization.
Chef Tag
Filter your results by Chef tag.
Control Tag
Filter your results by control tag.
Controls
Filter your results by control name. Filtered results display the status of nodes that ran the selected control.
Environment
Filter your results by environment.
InSpec Version
Filter your results by Chef InSpec version.
Node Name
Filter your results by node name.
Platform
Filter your results by platform.
Policy Group
Filter your results by policy group.
Policy Name
Filter your results by policy name.
Profile
Filter your results by profile name. This lists executed profiles, which are profiles with received scan results.
Recipe
Filter by Chef recipe, on all applicable nodes.
Role
Filter by Chef role, on all applicable nodes.

Deep Filtering

Deep filtering shifts the perspective of the results from the node to the profile and its associated control. Use deep filtering to see the compliance reporting for an entire profile or an individual control within a profile.

Deep filtering supports filtering for:

  • one profile
  • one profile and one of its associated controls

Waivers

A node’s waived status appears if applicable in displays where a node’s status appears in Chef Automate. The Compliance Reports overview displays the node count and history of waived nodes, and the count and history of waived controls. Nodes and Profiles views include Waived Nodes and Waived Profiles status filters respectively. Selecting the Waived status filter displays the respective Node or Profile reporting with the waived status. Hover over the control’s Waived icon under the Node Status column in Controls to view more details about the waiver applied to the control.

Use Chef InSpec to configure waivers.

Download Report Results

The download button located to the right of the search bar allows users to download a JSON or CSV format of the reports. The downloaded contents are the result of all of the applied filters–including end time selected in calendar.

Compliance Status and Report Metadata

The Compliance Status and Report Metadata bar is directly beneath the search bar. Expand the Report Metadata information by selecting the compliance status bar. The report metadata shows a summary of the nodes, report date, duration, status, number of platforms, number of environments, and number of profiles used in your scan.

Reports Metadata

Compliance Overview

Toggle between Node Status and Profile Status to view your system’s compliance state.

Node Status

The Node Status view shows your system’s compliance status from the operational perspective of nodes.

Node Status
Shows the number of nodes that passed or failed compliance scans, and the number of skipped or waived nodes.
Severity of Node Failures
Shows the severity of the compliance scan failures on your system’s nodes.
Node Status Over Time
Shows the changes in size and compliance status of your system over time. Use the dropdown menu in the upper left corner to change the date range. Changing the date range also changes the displays in related charts and tables.
Top Platform Failures
Shows the number of compliance scan failures grouped by operating system. Hovering over an individual bubble shows the platform name and the number of failed nodes.
Top Environment Failures
Shows the number of compliance scan failures grouped by environment. Hovering over an individual bubble shows the environment name and the number of failed nodes.

Profile Status

The Profile Status view shows your system’s compliance status from the compliance perspective of Compliance profiles run during scans.

Note

The control count in the Profile Status pane (Reports > Profile Status) shows the total number of executed controls, not the total number of unique controls.
Control Status
Shows the number of controls in your system, grouped by passing, failing, and skipped controls.
Severity of Control Failures
Shows failed controls, ranked by number and importance of the control failure, grouped as critical, major, and minor.
Control Status Over Time
A line graph showing the number of controls and Compliance scan results over time. Use the calendar button in the upper right corner of the chart to change the time frame.
Top Profile Failures
Indicates the profiles with the highest failure rate. Hover over an individual bubble to show the full profile name and the number of failed nodes.
Top Control Failures
Indicates the most frequently failing controls. Hover over an individual bubble to show the control name and the number of failed nodes.

Switching Views

Switch your views by selecting the appropriate tabs and see compliance report results from the perspective of Nodes, Profiles, and Controls.

Nodes

The Nodes view provides more detailed insight into the compliance status of the nodes in your system. Sort this table by node name, platform, environment, last scan, and the number of control failures from the most recent compliance scan. Scroll to the bottom of the page for pagination navigation options.

Reports Nodes

Node
A node is any machine that is under management by Chef.
Platform
The operating system on your node, such as AIX, Amazon Linux, Apache, macOS, CentOS, Oracle Linux, Oracle Solaris, RHEL, SUSE Linux, Ubuntu, and Windows.
Environment
You can filter compliance reports by the environments in any stage of your workflow.
Last Scan
Time in hours, days, or months since the last scan on that node.
Control Failures
Shows the number of failing controls, if any.
Filter
Select the filter icon on the right side of the row to select a node.
More Options
Select the (…) icon to display a menu with two additional options: Add Filter and Scan Results. Use Add Filter to narrow the results to the id of the selected node. Use Scan Results to show the scan results of controls for the specific node in a side window.

Profiles

Use the Profiles tab to examine the compliance profiles installed under your individual user account.

Reports Profiles

Profile Title
The name of the profile obtained from the Profile Store or uploaded.
Version
The semantic version identifier of the profile; you may need to update your profiles to get the most recent version.
Identifier
The name under which the profile is installed and a short profile title.
More Options
Select the (…) icon to display a menu with two additional options: Add Filter and Scan Results. Use Add Filter to narrow the results to the id of the selected profile. Use Scan Results to show the scan results of controls for the specific node in a side window.

Controls

Use the Controls tab to examine the compliance controls installed under your individual user account.

Reports Controls

Control Name
Control name and short description of its purpose
Profile
Profile containing the controls
Impact
Importance of the control
Last Scan
When the last scan occurred
Node Status
Shows the number of failed, passed, and skipped nodes
More Information
Select the (…) icon to display a menu with one additional option: Add Filter. Use Add Filter to narrow the results to the id of the selected profile and to the id of the selected control.

Individual Node Display

The node name is at the top of the header, directly above the node compliance status.

Reports Node Detail

The node history table displays the following information:

Control
Control name and short description of its purpose
Severity
Importance of the control
Root Profile
Profile containing the controls
Test Results
Number of tests within an individual control
More Information
Select the plus icon to display a control description and to toggle between Results and Source. Results describes the node compliance status and Source displays the Chef InSpec control source code.

Scan History

Select Scan History in the upper right corner to open a side-window. Choosing a compliance scan from this list redirects you to a view of all controls run during the selected scan.

Scan History

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/automate/reports/