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
| Return | Behavior |
|---|---|
event | Continue chain with modified event |
void | Continue chain, event unchanged |
false | Stop chain, event dropped |
Minimal Example
Loading...
Push Context
The push function receives an event and a push context:
config: Transformer configurationenv: Environment dependencieslogger: Scoped logger for outputid: Transformer identifiercollector: Access to collector instanceingest: 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
- Review Validator source as reference
- Learn about creating sources
- Learn about creating destinations
💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.