You have added a new policy to a Security Configuration Assessment in Qualys but a control attached to that policy has not been updated recently. Because the control had not been imported previously, it is missing even after running the the Qualys Import Utility because the API option updated_after_datetime is passing a timestamp later than the last updated date for the control.
What method can be used to force the Qualys Import Utility to backdate this timestamp in order to pull the missing control?
Version : 6.x
Component : Qualys Import Utility
To backdate the updated_after_datetime timestamp, set the LastRetrievalStarted value in the Application_Statistics table within the QualysGuardDW relational database to a date predating the last date on which the compliance control was updated and increase the ComplianceControlMaxHistoryDays in the ApiOptions table to accommodate a range going back to that date.
QualysGuardDW relational databaseUSE QualysGuardDW;NOTE: Replace
GO
UPDATE dbo.Application_Statistic
SET LastRetrievalStarted = <date>
WHERE ID = 4;
<date> with a date predating the last date on which the control was updatedUSE QualysGuardDW;NOTE: Replace
GO
UPDATE dbo.ApiOptions
SET OptionValue = <days>
WHERE OptionField = N'ComplianceControlMaxHistoryDays';
<days> with a value equal to or greater than the number of days since the date set in the statement in step 4 and today's dateThe following is an example of the API call with the updated_after_datetime timestamp: