Skip to content

Commit

Permalink
Updating the readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrielVelazquez committed Feb 28, 2024
1 parent b61982d commit 55d2081
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ var rule, _ = sigma.ParseRule(contents)
// Rules need to be wrapped in an evaluator.
// This is also where (if needed) you provide functions implementing the count, max, etc. aggregation functions
e := sigma.Evaluator(rule, options...)
e := evaluator.ForRule(rule)
// Get a stream of events from somewhere e.g. audit logs
for event := range events {
if e.Matches(ctx, event) {
Expand Down

0 comments on commit 55d2081

Please sign in to comment.