Skip to main content
Version: 25.0.0

Controlling the Flow of Security Events

The functionality described below can be used when an application protected by the Waratek Agent requires a restriction on the total number of events generated for a given rule, the functionality is enabled using the following flags :

com.waratek.MaxEventsPerRule=<number of events>
com.waratek.MaxEventsDelay=<seconds>

Note : both flags are required and neither flag has a default setting

The background to this functionality is to allow the Waratek to apply flow-control to its messages and prevent a flood of messages to the Portal in the event that the rule is triggered multiple times in quick succession. It should be noted that this does not apply to the local security log which will contain all events/messages.

The first flag requires the Waratek Agent to keep a count of the total number of events for a given rule such as file or SQLi, and - when the specified number is reached - skip sending events for that rule until the period specified in the second flag (MaxEventsDelay) has expired. At that point in time - the count is reset to zero and events start flowing again, until the value of MaxEventsPerRule threshold is reached again.

This way the agent will apply flow-control to its messages to the Portal so that the user can set limits of how many events the agent can send to the Portal in what period of time.

Each time the MaxEventsPerRule threshold is reached, a single new CEF event of type "Execute Rule" is generated for the specific rule, with the message that the "MaxEventsPerRule" threshold was reached along with the count of the number of events and the time for which event reporting will be paused.

No changes are required to other flags, in particular other flags that specify the connectivity to the Portal do not need to change.