JSON

This plugin allows filtering of JSON messages by looking at certain fields. Note that this filter is quite expensive due to JSON marshaling and regexp testing of every message passing through it.

Parameters

FilterReject
FilterReject defines fields that will cause a message to be rejected if the given regular expression matches. Rejects are checked before Accepts. Field paths can be defined in a format accepted by shared.MarshalMap.Path.
FilterAccept
FilterAccept defines fields that will cause a message to be rejected if the given regular expression does not match. Field paths can be defined in a format accepted by shared.MarshalMap.Path.

Example

- "stream.Broadcast":
    Filter: "filter.JSON"
    FilterReject:
        "command" : "state\d\..*"
    FilterAccept:
        "args/results[0]value" : "true"
        "args/results[1]" : "true"
        "command" : "state\d\..*"