Skip to main content

Create Your Own Transformer

Build custom transformers for validation, enrichment, or redaction.

The Transformer Interface

Transformers are functions that receive a context object and return a transformer instance:

Loading...

The context contains:

Loading...

The returned instance must implement:

Loading...

Return Values

ReturnBehavior
eventContinue chain with modified event
voidContinue chain, event unchanged
falseStop chain, event dropped

Minimal Example

Loading...

Push Context

The push function receives an event and a push context:

  • config: Transformer configuration
  • env: Environment dependencies
  • logger: Scoped logger for output
  • id: Transformer identifier
  • collector: Access to collector instance
  • ingest: Request metadata from source (optional)
Loading...

Examples

Enrich: Add Server-Side Data

Loading...

Validate: Custom Check

Loading...

Using Your Transformer

Loading...

Testing

Loading...

Next Steps

💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.