OBLYTECH Logo
OBLYTECH Logo

Set test result granularity for Qualys configuration compliance

Qualys test result granularity controls how finely the import separates results, using the keys you select. To set it, open All > Configure Qualys Test Result Granularity as a user with the sn_vulc.admin role, confirm the source integration is Qualys Cloud Platform and the table is Test Result, then enter true beside each extra key you want.

What granularity changes during a Qualys import

The Qualys integration imports test results using a set of default configuration keys. Granularity adds keys on top of those defaults, so the import creates a separate test result for each value of the key you add. The example in the configuration form is instance: selecting it creates a unique test result for each instance within a database.

The purpose is separation. Granular imports let teams manage their assets independently, and they stop data from being overwritten when several records share a common identifier. If your results collide under a shared identifier, a granularity key gives each asset its own line. If they do not collide, there is no reason to add a key.

Granularity is set on the key configuration form for the Qualys Cloud Platform integration, and it applies to the Test Result table. It is a different control from the test group import setting and the start time setting covered later in this guide. Results from other scanners follow a different import path, so for that case see importing Microsoft Defender for Cloud results into configuration compliance.

Roles and access for each task

Each task in this area has its own role requirement. Check the role for the specific action before you start, because the roles differ.

  • Set Qualys test result granularity keys: sn_vulc.admin.
  • Turn import on or off for a Qualys test group that holds configuration test results (CTRs): sn_vulc.admin or sn_vulc.remediation_owner.
  • Change the Qualys PC Results start time: sn_vul_qualys.admin.

Test group import control also covers host, application and container vulnerable items. Those roles are separate entries with their own names, and they are not the roles listed for configuration test results above.

Set the configuration keys step by step

  1. Navigate to All > Configure Qualys Test Result Granularity.
  2. In the Key Configuration form, confirm that Source integration is Qualys Cloud Platform.
  3. Confirm that Table is set to Test Result.
  4. In the Configuration Key section, choose the field for which you want to create unique test results.
  5. Enter true next to that field to enable granularity, or false to disable it.
  6. Select Update to save your changes.

Steps two and three are checks rather than edits. If Source integration shows something other than Qualys Cloud Platform, or Table is not Test Result, stop and find the form that matches the integration you are changing. Enter a key after both values match.

After you select Update, reopen the form and confirm that the key shows the value you expect. A change you cannot see in the form is harder to trace later when the import counts shift.

Choosing keys without slowing the integration

Each additional configuration key increases integration time. Limit extra keys to no more than three. Treat three as an upper limit, and start with the one key that resolves the collision you are seeing.

When you pick a key, look at the records that collide today and ask which field separates them the way your teams manage those assets. If one team owns each instance, the instance field is a natural choice. If ownership follows a different field, use that field instead of adding instance by default.

For help planning this work, see ServiceNow implementation.

Make one change at a time. Enable one key, run an import, and compare the results before you add another. If integration time rises, you can connect the increase to the key you changed last. That is hard to do when three keys change together. For the rules that calculate configuration compliance results, see configuration compliance calculator rules.

Test a granularity change on one asset

A granularity change is easiest to verify on one asset that previously shared a result with another. After the next import run, look for a separate test result for that asset under each value of the key you added. If the records still merge, reopen the key configuration form and confirm that the key is set to true and that Update saved the change.

Write down the test result count for that asset before and after the change, along with the key name and the date of the import run. Those three facts are enough to explain the change to a colleague later, and they make a second comparison much faster. For the remediation side of the same records, see configuration compliance remediation explained. For a wider test plan around this setup, see the policy and compliance management testing and acceptance checklist.

Pause import for one Qualys test group

Sometimes you need to stop importing results for a single Qualys test group while you review a change. The test group record view has that control, and it is separate from the granularity keys. Both sn_vulc.admin and sn_vulc.remediation_owner can use it for configuration test results, as listed above.

  1. Navigate to Workspaces > Security Exposure Management > Lists.
  2. In the Libraries section, under the Test Groups list, open a Qualys test group in the record view.
  3. Select the Disable import button to stop importing the test results associated with the group.
  4. Check that the Is Import disabled field changes to true.
  5. Optional: select the Enable import button to resume importing the test results.

The change takes effect from the next data ingestion. Test results for that group are not imported in that run. The control sits in the Security Exposure Management Workspace, so the integration administration pages are not needed for this step.

Check the Qualys PC Results start time when data is missing

If the Qualys PC Results import is missing data, check the start time. The start time sets how far back the import looks for scanned and detected test results. The field sits under Integration Details on the Qualys PC Results integration, and changing it requires sn_vul_qualys.admin.

  1. Navigate to All > Qualys Vulnerability Integration > Administration > Primary Integrations.
  2. Click the Qualys PC Results integration.
  3. Click Integration Details.
  4. Set the Start time field to a value in the past.
  5. Click Submit or Update.
  6. Optional: click Execute Now to run the import immediately.

Two limits apply here. A blank Start time returns no data on the first run. Keep the value to no more than one month in the past, because a longer window can exceed Qualys API rate limitations and trigger execution timeouts.

Release differences to check

The granularity steps are the same in the Brazil, Australia, Zurich and Yokohama releases. The Brazil, Australia and Zurich versions include the note that each extra key adds integration time and that extra keys should be limited to three. The Yokohama version omits that note, so the three-key guidance is not stated there. Check the release running on your instance before you decide how many keys to add.

The start time steps match in the Brazil and Australia releases. The test group import steps match in the Brazil and Zurich releases, and the roles listed for them are the same in both.

Questions about granularity and related Qualys settings

Does the Qualys granularity setting also apply to Tenable?

No. Tenable has a separate test result granularity page under All > Tenable Vulnerability Integration > Administration > Configure Tenable Test Result Granularity. Set keys on that page for Tenable results, even though the field names look similar.

Is the start time the same setting as granularity?

No. The start time controls how far back the Qualys PC Results import looks for scanned and detected results. Granularity controls how imported results are split into test result records. Use the start time to recover missing results and granularity to separate them. Do not expect one setting to do the other’s job.

Are granularity and a group import pause controlled by the same role?

Not exactly. Setting granularity keys is listed for sn_vulc.admin. Turning import on or off for a configuration test group is listed for sn_vulc.admin and sn_vulc.remediation_owner. A remediation owner can pause and resume a group’s import, but the key configuration step does not list that role.

Does pausing a test group change the granularity keys?

No. The group pause is set on the test group record, and the granularity keys are set on the Qualys key configuration form. Pausing a group stops its test results from being imported from the next data ingestion.