capabilities.work

Create a log sampling rule

One step with PostHog. We can help you get access.

Get something done

Create a log sampling rule

Use PostHog: its PostHog Logs API lets you create a log sampling rule in a single step (POST /api/projects/{project_id}/logs/sampling_rules/). capabilities.work can help you get signed up and connected.

  • How do I drop logs from a service to save storage?
  • Can I sample logs by severity?
Say it to your AI assistant
  • Create log sampling rule {name} in project {project_id} with config {config}.
  • Add a {rule_type} sampling rule for service {service} in project {project_id}.
For your developer

POST /api/projects/{project_id}/logs/sampling_rules/ in PostHog Logs API. Full spec on APIs.io.