View Source Runlet.Cmd.Filter (runlet v1.2.2)

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

@spec exec(Enumerable.t(), String.t()) :: 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"'