With the tracking of transaction completion per-direction, in IPS mode,
the engine will match on the rule before it sees the response message,
so it won't log the full transaction with the alert.
Update the checks for the alert to keep it simpler and thus compatible
with both Suri-7 and Suri-8.
Related to
Bug #7113
match:
event_type: pgsql
- filter:
- # in ips mode, as this rule inspects the stream only (no pgsql keywords), we end up getting two alerts instead of one
+ # in ips mode, as this rule inspects the stream only (no pgsql keywords),
+ # we end up getting two alerts instead of one
count: 2
match:
event_type: alert
event_type: alert
alert.signature_id: 1
pgsql.request.simple_query: "select * from rules where sid = 2021701;"
- pgsql.response.field_count: 10