Pipeline Event Data Model

Event Envelope

When data is moving from Sources through Processors to Destinations in a Pipeline, the key details of these events come through the message object.

While this may be all you need in your Pipeline, there is other data that may be available to you in what we refer to as the event envelope.

Envelope Fields

FieldPurpose
message

The main field that carries the important data elements of an event. This field will always be present.

Depending on the source, this field could be a string or an object.

Metrics: while there is no prescribed schema for log events, metrics have a prescribed data model you must follow.

metadata

This field contains properties that describe the message. In most cases this data is only accessible in a Pipeline, and is not passed to the Destination.

You can move Items in this field into message with the Map Fields Processor.

timestamp

This field is a ISO8601/RFC3339 formatted timestamp. For most Sources, this will be the date and time the event was received into the Pipeline.

When there is a standard data format (OTLP, Auto-parsed logs in known formats, etc), Mezmo will set this field to the timestamp it finds in the standard field.

You can override this value with the Set Timestamp Processor or the Script Execution Processor.

Example Event (entire envelope)
Example Event (message only)
Copy

View Envelope Fields

You can view the contents of the envelope with the Pipeline Tap and Simulation features. If it isn't displayed, make sure Show data envelope is set to ON.

Data envelope display control set to **On**

Data envelope display control set to On

Fields in message, metadata and timestamp can be referenced in most processors and destinations. The message field also has a shortcut syntax of .

For example, to access host from the example above, you could reference it as message.host or .host

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated