applyFilter

abstract fun applyFilter(log: JSONObject): JSONObject?

Called for each logs on which this filter is applied.

Return

The new log after applying the filter. The same log can be returned if no other processing is needed. If null is returned, the log will be skipped instead and will not be processed by other registered filters and outputs.

Parameters

log

The log serialized into JSON format.