cnspec supports different ways of reporting scan results. You can generate a JSON report or view and print results in the Mondoo Console.
Create a JSON report from the command line
To save the results of your scan to a JSON file, append your scan command with the
-o json > FILENAME.json
FILENAME, substitute the name you want to give the file. For example, this scans a Kubernetes cluster and reports the results to a file named
cnspec scan k8s -o json > k8s-test-results.json
View and print results in the Mondoo Console
When cnspec completes a scan, it provides a link to the Mondoo Console, where you can view graphical results.
You must register cnspec to see results in the Mondoo Console. To learn how, read Log into Mondoo Platform for More Capabilities.
To open printer-friendly results in a new browser tab, select the print icon near the top-right corner of the Mondoo Console.