Skip to content

Commit

Permalink
Merge pull request #163 from vruello/multiple_fields_value_count
Browse files Browse the repository at this point in the history
Allow multiple fields in value_count
  • Loading branch information
nasbench authored Mar 4, 2025
2 parents 69d0eda + ba0b931 commit fd5497d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 14 additions & 3 deletions json-schema/sigma-correlation-rules-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,20 @@
},
{
"field": {
"description": "Name of the field to count values",
"type": "string",
"maxLength": 256
"description": "Name of the field(s) to count values",
"anyOf": [
{
"type": "string",
"maxLength": 256
},
{
"type": "array",
"items": {
"type": "string",
"maxLength": 256
}
}
]
}
}
]
Expand Down
2 changes: 2 additions & 0 deletions specification/sigma-correlation-rules-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ Counts values in a field defined by `field`.
The resulting query must count field values separately for each group specified by group-by.
The condition finally defines how many values must occur to generate a search hit.

When you use multiple values in `field` they are linked by an **AND**.

Requires:
- `group-by`
- `timespan`
Expand Down

0 comments on commit fd5497d

Please sign in to comment.