ezgh obs datasets transforms <command>Transform rules change a dataset’s records as they arrive, before they’re stored, counted or sampled: drop noise, redact or hash values, reshape attributes and parse log bodies. They’re OpenTelemetry Transformation Language (OTTL) statements and drop conditions, per signal (logs, traces, metrics), as the Collector’s transform and filter processors take them. A rule can’t move records to another dataset: the environment attribute is put back after the rules run. A dataset without rules, or whose rules aren’t enabled, stores records as they arrive. Try a draft on sample records with test before you set it. The dataset is given by environment, ID, slug (dst_…) or name.
Part of ezgh obs datasets.
Flags
This command also takes the global flags.
Subcommands
| Command | Description |
|---|---|
ezgh obs datasets transforms get |
Show a dataset’s transform rules |
ezgh obs datasets transforms set |
Replace a dataset’s transform rules from a JSON file |
ezgh obs datasets transforms test |
Try transform rules on sample records without saving them |