Complete reference for defining Event Stream sources using YAML configuration files.
Available Plans
free
growth
enterprise
8 minute read
This guide serves as a detailed reference for the CLI project YAML files that contain definitions of your Event Stream source resources.
Overview
In the context of the Rudder CLI (rudder-cli) tool, you can define Event Stream sources as YAML files within your project directory. The location and naming of these YAML files is flexible, as you can store the YAML files anywhere within the project’s root directory or subdirectories.
The Rudder CLI tool processes all valid YAML files within the project structure to recognize the defined resources.
Event Stream Sources
You can define an Event Stream source in the YAML file by setting kind to event-stream-source.
The spec parameter of the YAML file has the following structure:
Property
Type
Description
id Required
String
Unique identifier for the source within the project. This parameter must be unique across all sources in the project.
Contains validation configuration including Tracking Plan reference and violation rules.
Validation properties
The validations object contains the Tracking Plan reference and violation handling rules:
Property
Type
Description
tracking_plan Required
String
URN reference to a Tracking Plan resource — the format is #tracking-plan:[tracking-plan.id], where tracking-plan.id is the spec.id value of the Tracking Plan resource.
The config object contains violation handling rules for different event types. Each event type configuration is optional; if not specified, default violation rules apply:
Each violation rules object contains the following properties:
Property
Type
Description
propagate_violations
Boolean
Determines whether to add violations in event context. When enabled, violation information is included in the event payload’s context for downstream processing.
Default value: true
drop_unplanned_events
Boolean
Only applies to track configuration. Determines whether to drop events without a corresponding rule in the associated Tracking Plan.
Default value: false
drop_unplanned_properties
Boolean
Determines whether to drop properties that are not defined in the Tracking Plan for the event.
Default value: false
drop_other_violations
Boolean
Determines whether to drop events with any other validation violations.
Default value: false
If you set drop_unplanned_events, drop_unplanned_properties, or drop_other_violations to true, events that violate these rules are dropped and not forwarded to destinations.
Make sure you understand the impact of these settings before deploying your source configuration.
Validation rules
Spec version
Filter by phase
Showing 2 of 2 rules
Event Stream source references must resolve to existing resources
When configuring data governance validation, you can reference Tracking Plans using the following URN format:
tracking_plan:"#tracking-plan:[tracking-plan.id]"
Where tracking-plan.id is the spec.id value of the Tracking Plan.
For example, if your Tracking Plan YAML file looks like this:
version:rudder/v1kind:tracking-planmetadata:name:ecommerce-tracking-planspec:id:product-tracking-plandisplay_name:"Product Tracking Plan"# ... rest of the configuration
You would reference it in your source configuration as:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.