Use a Benchmark Task to define:
the type of benchmark test to be run
the scope of the environment to be checked
the scheduled test frequency
the format in which you want to view the results report.
Once a task has been set up, it will run tests automatically on the scheduled timeline. You can also trigger the task manually.
Schedule an Automated Benchmark Test
Create a Task
From the
Benchmarks
module, select theSchedule
icon.The
Schedule list
(of existing tasks) is displayed.Click +
Add Task
and define the task parameters on theNew Task
page:Name:
Create a meaningful name.Type:
SelectDocker Benchmark
,Kubernetes Benchmark
, orLinux Benchmark
, despending on your environment.Schedule:
Choose a frequency and time to run the test.Scope:
ChooseEverywhere
, or narrow the scope as needed.(See also Using Labels .)
Report:
Select how you want to view the test results in the report.All Tests:
means that no filter will be applied to the Report.Sysdig will automatically apply the correct version of the benchmark test for your environment, based on the version of Kubernetes or Docker where the agent is installed.
Custom Selection:
LEGACY: means that you will Filter Report Results .After agent 9.7.0, the custom selection also defines what parts of the test will run.
Click
Save
.
One Task, One Test, One Environment
To run benchmarks on environments with different Kubernetes versions, create a separate task for that scope and version. Sysdig cannot run tests for multiple versions in a single task.
Filter Report Results
Note that the full CIS benchmark test will be run, even when the Report view is filtered.
From the
Benchmarks
module, select theSchedule
icon and either select or create aTask
.The
Task
configuration page is displayed.For Report, choose
Custom Selection
.Choose the appropriate
CIS benchmark version
from the drop-down menu (based on theType
chosen).See About Benchmark Versions for details.
Filter results as desired.
Optional: Choose a
Profile Level
(1 or 2).Select
Profile Level 1
to view only high-vulnerability results.Select
Profile Level 2
to view only the lower-level results that were excluded from Level 1.Select
All
(no profile filter) to view complete results.See also: About Profile Levels.
Optional: Select/deselect individual controls as desired.
Optional: Select
All
to clear previous selections and begin again.
Click
Save
.
Edit a Scheduled Task
From the
Benchmarks
module, select theSchedule
icon.The list of scheduled tasks is displayed.
Select a task from the list and edit.
Changing the Report filter settings for a task that has already been run will retroactively filter the existing report views.
- Click
Save
.
Delete a Scheduled Task
From the
Benchmarks
module, select theSchedule
icon.On the relevant task, click the
More Options
(three dots) icon.Select
Delete task
and clickYes
to confirm (orNo
to revert the change).
Trigger a Manual Benchmark Test (Run Now)
Rather than wait for the next scheduled time for a benchmark test to run, users can choose to run a benchmark test manually.