How to Disable & Delete SCA Scan

402 views
Skip to first unread message

Park Waldo

unread,
Mar 22, 2022, 1:25:02 AM3/22/22
to Wazuh mailing list

I need to SCA disable and delete data.

Please advise me.


123.JPG

elw...@wazuh.com

unread,
Mar 22, 2022, 6:05:55 AM3/22/22
to Wazuh mailing list
Hello Park,

All SCA options are described here https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/sca.html#reference-sec-config-assessment and disabling it for all the agents, can be done through the groups as shown below:

image (125).png
image (126).png


To delete the indexed SCA data, you can use delete by query via the dev tools:

POST /wazuh-alerts-*/_delete_by_query?wait_for_completion=true
{
   "query": {
    "bool": {
      "must": [
        {
          "match": {
            "decoder.name": "sca"
          }
        }
      ]
    }
  }
}


image (127).png


Hope this helps.

Regards,
Wali

Park Waldo

unread,
Mar 24, 2022, 12:19:31 AM3/24/22
to Wazuh mailing list
Dear sir,

thanks for your information, but it was same as below.

#! Deprecation: this request accesses system indices: [.kibana_1], but in a future major version, direct access to system indices will be prevented by default
{
  "took" : 352,
  "timed_out" : false,
  "total" : 0,
  "deleted" : 0,
  "batches" : 0,
  "version_conflicts" : 0,
  "noops" : 0,
  "retries" : {
    "bulk" : 0,
    "search" : 0
  },
  "throttled_millis" : 0,
  "requests_per_second" : -1.0,
  "throttled_until_millis" : 0,
  "failures" : [ ]
}

please check and reply me.

thanks,


2022년 3월 22일 화요일 오후 7시 5분 55초 UTC+9에 elw...@wazuh.com님이 작성:
Reply all
Reply to author
Forward
0 new messages