Filter events
This page describes how to filter events written to Boundary event sinks.
Starting in Boundary 0.5.0, a variety of event types (error, observation, system, etc) are emitted from Boundary. Boundary events can be emitted in several formats including cloudevents and hclog, and can be encoded as text and json.
Boundary allows you to configure any number of sinks where these events will be
written. When configuring an event sink, you can specify common sink
parameters which include both
allow_filters
and deny_filters
which use the standard filter
syntax used elsewhere in Boundary.
Example events encoded as cloudevents-text. The first event is a system event and the second event is an observation event.
To filter an event sink which was configured for every event type to only include the above events, use the following sink configuration:
When running boundary dev
the example allow filter can be given via:
Double quotes are part of the filter syntax; when using the CLI, it is likely easier to surround the filter with single quotes than to deal with escaping double quotes.
Note: Both -event-allow-filter
and -event-deny-filter
command flags are
supported for the boundary dev
command.