runlet v1.0.0 Runlet.Cmd.Filter

Filter events based on a regular expression

Link to this section Summary

Functions

Filter events using a regexp. The value of each JSON key is matched against the regexp.

Link to this section Functions

Link to this function

exec(stream, match)

exec(Enumerable.t(), binary()) :: Enumerable.t()

Filter events using a regexp. The value of each JSON key is matched against the regexp.

It may be more efficient to write a query. For example, instead of running:

query 'service ~= "foo"' | filter "bar"

Use:

query 'service ~= "foo" and not description ~= "bar"'