intelmq
intelmq copied to clipboard
modify: check for non-existence with regex
Currently it is not possible to check both for non-existence and a value with just one rule, e.g.:
"if": {
"classification.identifier": "^(|botnet)$"
}
Events with a non-existent classification.identifier do not match this value, as a non-empty value in the rule is assumed as "field must exist".
Workaround: Create two rules:
"if": {
"classification.identifier": ""
}
and:
"if": {
"classification.identifier": "^botnet$"
}