Create a log sampling rule
One step with PostHog. We can help you get access.
Get something done
Create a log sampling rule
with PostHog · Observability Management
Use PostHog: its PostHog Logs API lets you create a log sampling rule in a single step (POST /api/environments/{environment_id}/logs/sampling_rules/). capabilities.work can help you get signed up and connected.
- How do I drop logs from a specific path to save storage?
- Can I sample logs by severity in an environment?
Say it to your AI assistant
- Create a log sampling rule {id} in environment {environment_id} with config {config}.
- Add a log sampling rule {id} in {environment_id} that drops logs matching {scope_path_pattern}.
For your developer
POST /api/environments/{environment_id}/logs/sampling_rules/ in PostHog Logs API. Full spec on APIs.io.