toEventFilter

public static Predicate<Event> toEventFilter(CompositeFilter filterData)

Creates a filter of events which can apply conditions from the passed CompositeFilter to both event message and its context.

The filter is deemed addressing the event context if the field path specified in it starts with the "context." prefix.