Prerequisites
- A running observability platform (Datadog, or any OTLP-compatible backend)
- Docker or a Zig build environment
Step 1: Create a Configuration
Create aconfig.json file:
- Datadog
- OTLP
config.json
Replace the URLs with your Datadog region’s endpoints. See Datadog distribution for region-specific URLs.
Step 2: Create a Policy
Create apolicies.json file with a simple policy that drops debug logs:
policies.json
- Matches logs with severity DEBUG or TRACE
- Drops them (
keep: none)
Step 3: Run Edge
- Docker
- Binary
- From Source
Step 4: Point Your Telemetry at Edge
Configure your applications or agents to send telemetry to Edge instead of directly to your backend.- Datadog Agent
- OTLP
In your
datadog.yaml:Step 5: Verify It’s Working
Send a test log and check that debug logs are being dropped:What’s Next?
You now have Edge filtering telemetry. From here:Reference
Full configuration reference
Log Filter
Learn all the ways to filter logs
Log Transform
Redact and transform log data
Distributions
Configure for your specific backend