Opal Output
By default, when you run Opal with the Lacework CLI, the CLI outputs enriched assessment results as plain text. You can tailor Opal's output based on your preferences, go to Output Preferences for more information.
Output Preferences
You can tailor your Opal output's type and format using the following flags:
| Flag | Description |
|---|---|
--upload | The --upload flag determines if the output data is enriched or raw. |
--format | The --format can be used to view output as JSON. |
--upload
The CLI can output enriched or raw data depending on what you specify with the --upload flag. To view enriched data, do not specify a flag, or use the --upload=true flag. Your data is uploaded to Soluble where it is enriched and returned to you with additional context regarding your assessment results.
To view the raw data, set the --upload flag to =false. For example, lacework iac tf-scan opal -d <path to target directory> --upload=false
--format
Opal automatically outputs assessment results as plain text. To view results as JSON, specify --format=json. For example, lacework iac tf-scan opal -d <path to target directory> --format=json
You can also specify the output type in JSON format. For example, the following command outputs the raw data as JSON: lacework iac tf-scan opal -d <path to target directory> --upload=false --format=json