provider logs POST /api/environments/{environment_id}/logs/patterns_diff/
@utdk/posthog /api/environments/{environment_id}/logs/patterns_diff/
environments_logs_patterns_diff_create
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string

Try it

Authentication
Configure credentials for PostHog API
environmentsLogsPatternsDiffCreate
POST/api/environments/{environment_id}/logs/patterns_diff/

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

required

The patterns query for the current (foreground) window: date range plus any severity/service/search/property filters. The same filters are applied to the baseline window.

Baseline window to compare against. Omit to default to the current window shifted back exactly one week, which absorbs daily and weekly log-volume cycles. Pass an explicit range to compare against a specific period, e.g. pre-deploy or pre-incident.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsLogsPatternsDiffCreate()