Before you begin
You need:- Docker
- A Datadog intake endpoint and API key for your region
- A working directory for the quickstart files
1. Create the Edge configuration
Createconfig.json:
config.json
upstream_url and
metrics_url with the endpoints from
Edge Datadog.
You now have a local Edge listener on port 8080 and a file policy provider.
2. Create a policy
Createpolicies.json:
policies.json
status field is debug or
trace. Edge drops matching logs.
3. Run Edge
Run the Datadog distribution:local policy provider.
4. Send a debug log
In another terminal, send a debug log to Edge:status: debug, Edge
should drop the log before forwarding.
5. Send an error log
Send an error log to the same endpoint:6. Check Edge output
Return to the terminal running Edge. You should see activity for the incoming requests. The debug request should show a policy match or dropped-log activity. The error request should show forwarding activity. If Edge forwards both requests, confirm thatpolicies.json is mounted at
/etc/edge/policies.json and that the policy matches the status field.
What you ran
You ran Edge locally, loaded one file-backed policy, sent two logs through Edge, and verified the policy decision. That is the basic Edge loop: receive telemetry, match policies, apply the keep decision, and forward the result.Next steps
- Read How Edge works for the runtime model.
- Use Config for configuration fields.
- Use Log filter for log matching and keep actions.
- Use Edge Datadog for Datadog-specific configuration.