Hi German,
The CDB list is not useable in DSL queries or filtering the alert events Dashboard.CDB list can only be used in the rules of Wazuh.
Ref: https://documentation.wazuh.com/current/user-manual/ruleset/cdb-list.html
You can use a query like this in DSL for a multiple-value list
{
"query": {
"bool": {
"should": [
{
"match_phrase": {
"data.win.eventdata.targetUserName": "Administrador"
}
},
{
"match_phrase": {
"data.win.eventdata.targetUserName": "server"
}
},
{
"match_phrase": {
"data.win.eventdata.targetUserName": "admin"
}
}
],
"minimum_should_match": 1
}
}
}
Ref: https://opensearch.org/docs/latest/query-dsl/
I hope you find this information helpful. Let me know if you need any further information on this.
I believe you are asking about this advance section.
This is a feature from OpenSearch.
Chcek the document to learn more.
https://opensearch.org/docs/2.7/aggregations/
For filtering you can use DSL like this.
{
"query": {
"bool": {
"should": [
{
"match_phrase": {
"agent.name": "win10_sakib"
}
},
{
"match_phrase": {
"data.vulnerability.status": "Active"
}
}
],
"minimum_should_match": 2
}
}
}
Ref: https://opensearch.org/docs/latest/query-dsl/
Let me know if you need any further information on this.