Skip to content

Commit

Permalink
Added user.name exists in Elastic query
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorygold committed Sep 29, 2023
1 parent 5c68182 commit 0f15e84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buffalogs/impossible_travel/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def exec_process_logs(start_date, end_date):
.query("match", **{"event.category": "authentication"})
.query("match", **{"event.outcome": "success"})
.query("match", **{"event.type": "start"})
.query("exists", field="user.name")
.exclude("terms", **{"user.name": config.ignored_users})
.exclude("terms", **{"source.ip": config.ignored_ips})
)
Expand Down

0 comments on commit 0f15e84

Please sign in to comment.