Skip to content

Commit 599c8c6

Browse files
committed
Refactor the structure of expressions in where blocks of filter kaspersky.
1 parent 8503677 commit 599c8c6

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

filters/antivirus/kaspersky.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# KAV module filter, version 3.0.0
1+
# KAV module filter, version 3.0.1
22
# Based in docs and samples log provided
33
# Support Syslog CEF format
44
#
@@ -1092,25 +1092,15 @@ pipeline:
10921092
params:
10931093
source: origin.ip
10941094
destination: origin.geolocation
1095-
where:
1096-
variables:
1097-
- get: origin.ip
1098-
as: ip
1099-
ofType: string
1100-
expression: "ip_ok == true"
1095+
where: has(origin.ip)
11011096

11021097
# Adding geolocation to target.ip
11031098
- dynamic:
11041099
plugin: com.utmstack.geolocation
11051100
params:
11061101
source: target.ip
11071102
destination: target.geolocation
1108-
where:
1109-
variables:
1110-
- get: target.ip
1111-
as: ip
1112-
ofType: string
1113-
expression: "ip_ok == true"
1103+
where: has(target.ip)
11141104

11151105
# .......................................................................#
11161106
# Removing unused fields

0 commit comments

Comments
 (0)