PostHog · Capability

PostHog API — logs

PostHog API — logs. 125 operations. Lead operation: logs. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthoglogs

What You Can Do

GET
Environmentslogsalertslist — environmentslogsalertslist
/v1/api/environments/{environment-id}/logs/alerts
GET
Environmentslogsalertslist — environmentslogsalertslist
/v1/api/environments/{environment-id}/logs/alerts
POST
Environmentslogsalertscreate — environmentslogsalertscreate
/v1/api/environments/{environment-id}/logs/alerts
POST
Environmentslogsalertscreate — environmentslogsalertscreate
/v1/api/environments/{environment-id}/logs/alerts
POST
Environmentslogsalertssimulatecreate — Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
/v1/api/environments/{environment-id}/logs/alerts/simulate
POST
Environmentslogsalertssimulatecreate — Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
/v1/api/environments/{environment-id}/logs/alerts/simulate
GET
Environmentslogsalertsretrieve — environmentslogsalertsretrieve
/v1/api/environments/{environment-id}/logs/alerts/{id}
GET
Environmentslogsalertsretrieve — environmentslogsalertsretrieve
/v1/api/environments/{environment-id}/logs/alerts/{id}
PUT
Environmentslogsalertsupdate — environmentslogsalertsupdate
/v1/api/environments/{environment-id}/logs/alerts/{id}
PUT
Environmentslogsalertsupdate — environmentslogsalertsupdate
/v1/api/environments/{environment-id}/logs/alerts/{id}
PATCH
Environmentslogsalertspartialupdate — environmentslogsalertspartialupdate
/v1/api/environments/{environment-id}/logs/alerts/{id}
PATCH
Environmentslogsalertspartialupdate — environmentslogsalertspartialupdate
/v1/api/environments/{environment-id}/logs/alerts/{id}
DELETE
Environmentslogsalertsdestroy — environmentslogsalertsdestroy
/v1/api/environments/{environment-id}/logs/alerts/{id}
DELETE
Environmentslogsalertsdestroy — environmentslogsalertsdestroy
/v1/api/environments/{environment-id}/logs/alerts/{id}
POST
Environmentslogsalertsdestinationscreate — Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
/v1/api/environments/{environment-id}/logs/alerts/{id}/destinations
POST
Environmentslogsalertsdestinationscreate — Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
/v1/api/environments/{environment-id}/logs/alerts/{id}/destinations
POST
Environmentslogsalertsdestinationsdeletecreate — Delete a notification destination by deleting its HogFunction group atomically.
/v1/api/environments/{environment-id}/logs/alerts/{id}/destinations/delete
POST
Environmentslogsalertsdestinationsdeletecreate — Delete a notification destination by deleting its HogFunction group atomically.
/v1/api/environments/{environment-id}/logs/alerts/{id}/destinations/delete
GET
Environmentslogsalertseventslist — Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c
/v1/api/environments/{environment-id}/logs/alerts/{id}/events
GET
Environmentslogsalertseventslist — Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c
/v1/api/environments/{environment-id}/logs/alerts/{id}/events
POST
Environmentslogsalertsresetcreate — Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
/v1/api/environments/{environment-id}/logs/alerts/{id}/reset
POST
Environmentslogsalertsresetcreate — Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
/v1/api/environments/{environment-id}/logs/alerts/{id}/reset
GET
Environmentslogsattributesretrieve — environmentslogsattributesretrieve
/v1/api/environments/{environment-id}/logs/attributes
GET
Environmentslogsattributesretrieve — environmentslogsattributesretrieve
/v1/api/environments/{environment-id}/logs/attributes
POST
Environmentslogscountrangescreate — environmentslogscountrangescreate
/v1/api/environments/{environment-id}/logs/count-ranges
POST
Environmentslogscountrangescreate — environmentslogscountrangescreate
/v1/api/environments/{environment-id}/logs/count-ranges
POST
Environmentslogscountcreate — environmentslogscountcreate
/v1/api/environments/{environment-id}/logs/count
POST
Environmentslogscountcreate — environmentslogscountcreate
/v1/api/environments/{environment-id}/logs/count
POST
Environmentslogsexportcreate — environmentslogsexportcreate
/v1/api/environments/{environment-id}/logs/export
POST
Environmentslogsexportcreate — environmentslogsexportcreate
/v1/api/environments/{environment-id}/logs/export
GET
Environmentslogshaslogsretrieve — environmentslogshaslogsretrieve
/v1/api/environments/{environment-id}/logs/has-logs
GET
Environmentslogshaslogsretrieve — environmentslogshaslogsretrieve
/v1/api/environments/{environment-id}/logs/has-logs
POST
Environmentslogsquerycreate — environmentslogsquerycreate
/v1/api/environments/{environment-id}/logs/query
POST
Environmentslogsquerycreate — environmentslogsquerycreate
/v1/api/environments/{environment-id}/logs/query
GET
Environmentslogssamplingruleslist — environmentslogssamplingruleslist
/v1/api/environments/{environment-id}/logs/sampling-rules
GET
Environmentslogssamplingruleslist — environmentslogssamplingruleslist
/v1/api/environments/{environment-id}/logs/sampling-rules
POST
Environmentslogssamplingrulescreate — environmentslogssamplingrulescreate
/v1/api/environments/{environment-id}/logs/sampling-rules
POST
Environmentslogssamplingrulescreate — environmentslogssamplingrulescreate
/v1/api/environments/{environment-id}/logs/sampling-rules
POST
Environmentslogssamplingrulesreordercreate — Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
/v1/api/environments/{environment-id}/logs/sampling-rules/reorder
POST
Environmentslogssamplingrulesreordercreate — Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
/v1/api/environments/{environment-id}/logs/sampling-rules/reorder
GET
Environmentslogssamplingrulesretrieve — environmentslogssamplingrulesretrieve
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
GET
Environmentslogssamplingrulesretrieve — environmentslogssamplingrulesretrieve
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
PUT
Environmentslogssamplingrulesupdate — environmentslogssamplingrulesupdate
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
PUT
Environmentslogssamplingrulesupdate — environmentslogssamplingrulesupdate
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
PATCH
Environmentslogssamplingrulespartialupdate — environmentslogssamplingrulespartialupdate
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
PATCH
Environmentslogssamplingrulespartialupdate — environmentslogssamplingrulespartialupdate
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
DELETE
Environmentslogssamplingrulesdestroy — environmentslogssamplingrulesdestroy
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
DELETE
Environmentslogssamplingrulesdestroy — environmentslogssamplingrulesdestroy
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}
POST
Environmentslogssamplingrulessimulatecreate — Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}/simulate
POST
Environmentslogssamplingrulessimulatecreate — Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
/v1/api/environments/{environment-id}/logs/sampling-rules/{id}/simulate
POST
Environmentslogsservicescreate — environmentslogsservicescreate
/v1/api/environments/{environment-id}/logs/services
POST
Environmentslogsservicescreate — environmentslogsservicescreate
/v1/api/environments/{environment-id}/logs/services
POST
Environmentslogssparklinecreate — environmentslogssparklinecreate
/v1/api/environments/{environment-id}/logs/sparkline
POST
Environmentslogssparklinecreate — environmentslogssparklinecreate
/v1/api/environments/{environment-id}/logs/sparkline
GET
Environmentslogsvaluesretrieve — environmentslogsvaluesretrieve
/v1/api/environments/{environment-id}/logs/values
GET
Environmentslogsvaluesretrieve — environmentslogsvaluesretrieve
/v1/api/environments/{environment-id}/logs/values
POST
Logsexplainlogwithaicreate — Explain a log entry using AI.
/v1/api/environments/{project-id}/logs/explainlogwithai
GET
Logsviewslist — logsviewslist
/v1/api/environments/{project-id}/logs/views
GET
Logsviewslist — logsviewslist
/v1/api/environments/{project-id}/logs/views
POST
Logsviewscreate — logsviewscreate
/v1/api/environments/{project-id}/logs/views
POST
Logsviewscreate — logsviewscreate
/v1/api/environments/{project-id}/logs/views
GET
Logsviewsretrieve — logsviewsretrieve
/v1/api/environments/{project-id}/logs/views/{short-id}
GET
Logsviewsretrieve — logsviewsretrieve
/v1/api/environments/{project-id}/logs/views/{short-id}
PUT
Logsviewsupdate — logsviewsupdate
/v1/api/environments/{project-id}/logs/views/{short-id}
PUT
Logsviewsupdate — logsviewsupdate
/v1/api/environments/{project-id}/logs/views/{short-id}
PATCH
Logsviewspartialupdate — logsviewspartialupdate
/v1/api/environments/{project-id}/logs/views/{short-id}
PATCH
Logsviewspartialupdate — logsviewspartialupdate
/v1/api/environments/{project-id}/logs/views/{short-id}
DELETE
Logsviewsdestroy — logsviewsdestroy
/v1/api/environments/{project-id}/logs/views/{short-id}
DELETE
Logsviewsdestroy — logsviewsdestroy
/v1/api/environments/{project-id}/logs/views/{short-id}
GET
Logsalertslist — logsalertslist
/v1/api/projects/{project-id}/logs/alerts
GET
Logsalertslist — logsalertslist
/v1/api/projects/{project-id}/logs/alerts
POST
Logsalertscreate — logsalertscreate
/v1/api/projects/{project-id}/logs/alerts
POST
Logsalertscreate — logsalertscreate
/v1/api/projects/{project-id}/logs/alerts
POST
Logsalertssimulatecreate — Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
/v1/api/projects/{project-id}/logs/alerts/simulate
POST
Logsalertssimulatecreate — Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.
/v1/api/projects/{project-id}/logs/alerts/simulate
GET
Logsalertsretrieve — logsalertsretrieve
/v1/api/projects/{project-id}/logs/alerts/{id}
GET
Logsalertsretrieve — logsalertsretrieve
/v1/api/projects/{project-id}/logs/alerts/{id}
PUT
Logsalertsupdate — logsalertsupdate
/v1/api/projects/{project-id}/logs/alerts/{id}
PUT
Logsalertsupdate — logsalertsupdate
/v1/api/projects/{project-id}/logs/alerts/{id}
PATCH
Logsalertspartialupdate — logsalertspartialupdate
/v1/api/projects/{project-id}/logs/alerts/{id}
PATCH
Logsalertspartialupdate — logsalertspartialupdate
/v1/api/projects/{project-id}/logs/alerts/{id}
DELETE
Logsalertsdestroy — logsalertsdestroy
/v1/api/projects/{project-id}/logs/alerts/{id}
DELETE
Logsalertsdestroy — logsalertsdestroy
/v1/api/projects/{project-id}/logs/alerts/{id}
POST
Logsalertsdestinationscreate — Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
/v1/api/projects/{project-id}/logs/alerts/{id}/destinations
POST
Logsalertsdestinationscreate — Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.
/v1/api/projects/{project-id}/logs/alerts/{id}/destinations
POST
Logsalertsdestinationsdeletecreate — Delete a notification destination by deleting its HogFunction group atomically.
/v1/api/projects/{project-id}/logs/alerts/{id}/destinations/delete
POST
Logsalertsdestinationsdeletecreate — Delete a notification destination by deleting its HogFunction group atomically.
/v1/api/projects/{project-id}/logs/alerts/{id}/destinations/delete
GET
Logsalertseventslist — Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c
/v1/api/projects/{project-id}/logs/alerts/{id}/events
GET
Logsalertseventslist — Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c
/v1/api/projects/{project-id}/logs/alerts/{id}/events
POST
Logsalertsresetcreate — Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
/v1/api/projects/{project-id}/logs/alerts/{id}/reset
POST
Logsalertsresetcreate — Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
/v1/api/projects/{project-id}/logs/alerts/{id}/reset
GET
Logsattributesretrieve — logsattributesretrieve
/v1/api/projects/{project-id}/logs/attributes
GET
Logsattributesretrieve — logsattributesretrieve
/v1/api/projects/{project-id}/logs/attributes
POST
Logscountrangescreate — logscountrangescreate
/v1/api/projects/{project-id}/logs/count-ranges
POST
Logscountrangescreate — logscountrangescreate
/v1/api/projects/{project-id}/logs/count-ranges
POST
Logscountcreate — logscountcreate
/v1/api/projects/{project-id}/logs/count
POST
Logscountcreate — logscountcreate
/v1/api/projects/{project-id}/logs/count
POST
Logsexportcreate — logsexportcreate
/v1/api/projects/{project-id}/logs/export
POST
Logsexportcreate — logsexportcreate
/v1/api/projects/{project-id}/logs/export
GET
Logshaslogsretrieve — logshaslogsretrieve
/v1/api/projects/{project-id}/logs/has-logs
GET
Logshaslogsretrieve — logshaslogsretrieve
/v1/api/projects/{project-id}/logs/has-logs
POST
Logsquerycreate — logsquerycreate
/v1/api/projects/{project-id}/logs/query
POST
Logsquerycreate — logsquerycreate
/v1/api/projects/{project-id}/logs/query
GET
Logssamplingruleslist — logssamplingruleslist
/v1/api/projects/{project-id}/logs/sampling-rules
GET
Logssamplingruleslist — logssamplingruleslist
/v1/api/projects/{project-id}/logs/sampling-rules
POST
Logssamplingrulescreate — logssamplingrulescreate
/v1/api/projects/{project-id}/logs/sampling-rules
POST
Logssamplingrulescreate — logssamplingrulescreate
/v1/api/projects/{project-id}/logs/sampling-rules
POST
Logssamplingrulesreordercreate — Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
/v1/api/projects/{project-id}/logs/sampling-rules/reorder
POST
Logssamplingrulesreordercreate — Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
/v1/api/projects/{project-id}/logs/sampling-rules/reorder
GET
Logssamplingrulesretrieve — logssamplingrulesretrieve
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
GET
Logssamplingrulesretrieve — logssamplingrulesretrieve
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
PUT
Logssamplingrulesupdate — logssamplingrulesupdate
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
PUT
Logssamplingrulesupdate — logssamplingrulesupdate
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
PATCH
Logssamplingrulespartialupdate — logssamplingrulespartialupdate
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
PATCH
Logssamplingrulespartialupdate — logssamplingrulespartialupdate
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
DELETE
Logssamplingrulesdestroy — logssamplingrulesdestroy
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
DELETE
Logssamplingrulesdestroy — logssamplingrulesdestroy
/v1/api/projects/{project-id}/logs/sampling-rules/{id}
POST
Logssamplingrulessimulatecreate — Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
/v1/api/projects/{project-id}/logs/sampling-rules/{id}/simulate
POST
Logssamplingrulessimulatecreate — Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).
/v1/api/projects/{project-id}/logs/sampling-rules/{id}/simulate
POST
Logsservicescreate — logsservicescreate
/v1/api/projects/{project-id}/logs/services
POST
Logsservicescreate — logsservicescreate
/v1/api/projects/{project-id}/logs/services
POST
Logssparklinecreate — logssparklinecreate
/v1/api/projects/{project-id}/logs/sparkline
POST
Logssparklinecreate — logssparklinecreate
/v1/api/projects/{project-id}/logs/sparkline
GET
Logsvaluesretrieve — logsvaluesretrieve
/v1/api/projects/{project-id}/logs/values
GET
Logsvaluesretrieve — logsvaluesretrieve
/v1/api/projects/{project-id}/logs/values

MCP Tools

environmentslogsalertslist

environmentslogsalertslist

read-only idempotent
environmentslogsalertslist-2

environmentslogsalertslist

read-only idempotent
environmentslogsalertscreate

environmentslogsalertscreate

environmentslogsalertscreate-2

environmentslogsalertscreate

simulate-logs-alert-historical-data

Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.

read-only
simulate-logs-alert-historical-data-2

Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.

read-only
environmentslogsalertsretrieve

environmentslogsalertsretrieve

read-only idempotent
environmentslogsalertsretrieve-2

environmentslogsalertsretrieve

read-only idempotent
environmentslogsalertsupdate

environmentslogsalertsupdate

idempotent
environmentslogsalertsupdate-2

environmentslogsalertsupdate

idempotent
environmentslogsalertspartialupdate

environmentslogsalertspartialupdate

idempotent
environmentslogsalertspartialupdate-2

environmentslogsalertspartialupdate

idempotent
environmentslogsalertsdestroy

environmentslogsalertsdestroy

idempotent
environmentslogsalertsdestroy-2

environmentslogsalertsdestroy

idempotent
create-notification-destination-this-alert

Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.

create-notification-destination-this-alert-2

Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.

delete-notification-destination-deleting-its

Delete a notification destination by deleting its HogFunction group atomically.

delete-notification-destination-deleting-its-2

Delete a notification destination by deleting its HogFunction group atomically.

paginated-event-history-this-alert

Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c

read-only idempotent
paginated-event-history-this-alert-2

Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c

read-only idempotent
reset-broken-alert-clears-consecutive

Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.

reset-broken-alert-clears-consecutive-2

Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.

environmentslogsattributesretrieve

environmentslogsattributesretrieve

read-only idempotent
environmentslogsattributesretrieve-2

environmentslogsattributesretrieve

read-only idempotent
environmentslogscountrangescreate

environmentslogscountrangescreate

environmentslogscountrangescreate-2

environmentslogscountrangescreate

environmentslogscountcreate

environmentslogscountcreate

environmentslogscountcreate-2

environmentslogscountcreate

environmentslogsexportcreate

environmentslogsexportcreate

environmentslogsexportcreate-2

environmentslogsexportcreate

environmentslogshaslogsretrieve

environmentslogshaslogsretrieve

read-only idempotent
environmentslogshaslogsretrieve-2

environmentslogshaslogsretrieve

read-only idempotent
environmentslogsquerycreate

environmentslogsquerycreate

read-only
environmentslogsquerycreate-2

environmentslogsquerycreate

read-only
environmentslogssamplingruleslist

environmentslogssamplingruleslist

read-only idempotent
environmentslogssamplingruleslist-2

environmentslogssamplingruleslist

read-only idempotent
environmentslogssamplingrulescreate

environmentslogssamplingrulescreate

environmentslogssamplingrulescreate-2

environmentslogssamplingrulescreate

atomically-reassign-priorities-so-given

Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).

atomically-reassign-priorities-so-given-2

Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).

environmentslogssamplingrulesretrieve

environmentslogssamplingrulesretrieve

read-only idempotent
environmentslogssamplingrulesretrieve-2

environmentslogssamplingrulesretrieve

read-only idempotent
environmentslogssamplingrulesupdate

environmentslogssamplingrulesupdate

idempotent
environmentslogssamplingrulesupdate-2

environmentslogssamplingrulesupdate

idempotent
environmentslogssamplingrulespartialupdate

environmentslogssamplingrulespartialupdate

idempotent
environmentslogssamplingrulespartialupdate-2

environmentslogssamplingrulespartialupdate

idempotent
environmentslogssamplingrulesdestroy

environmentslogssamplingrulesdestroy

idempotent
environmentslogssamplingrulesdestroy-2

environmentslogssamplingrulesdestroy

idempotent
dry-run-estimate-how-much

Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).

dry-run-estimate-how-much-2

Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).

environmentslogsservicescreate

environmentslogsservicescreate

environmentslogsservicescreate-2

environmentslogsservicescreate

environmentslogssparklinecreate

environmentslogssparklinecreate

environmentslogssparklinecreate-2

environmentslogssparklinecreate

environmentslogsvaluesretrieve

environmentslogsvaluesretrieve

read-only idempotent
environmentslogsvaluesretrieve-2

environmentslogsvaluesretrieve

read-only idempotent
explain-log-entry-using-ai

Explain a log entry using AI.

logsviewslist

logsviewslist

read-only idempotent
logsviewslist-2

logsviewslist

read-only idempotent
logsviewscreate

logsviewscreate

logsviewscreate-2

logsviewscreate

logsviewsretrieve

logsviewsretrieve

read-only idempotent
logsviewsretrieve-2

logsviewsretrieve

read-only idempotent
logsviewsupdate

logsviewsupdate

idempotent
logsviewsupdate-2

logsviewsupdate

idempotent
logsviewspartialupdate

logsviewspartialupdate

idempotent
logsviewspartialupdate-2

logsviewspartialupdate

idempotent
logsviewsdestroy

logsviewsdestroy

idempotent
logsviewsdestroy-2

logsviewsdestroy

idempotent
logsalertslist

logsalertslist

read-only idempotent
logsalertslist-2

logsalertslist

read-only idempotent
logsalertscreate

logsalertscreate

logsalertscreate-2

logsalertscreate

simulate-logs-alert-historical-data-3

Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.

read-only
simulate-logs-alert-historical-data-4

Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records are created.

read-only
logsalertsretrieve

logsalertsretrieve

read-only idempotent
logsalertsretrieve-2

logsalertsretrieve

read-only idempotent
logsalertsupdate

logsalertsupdate

idempotent
logsalertsupdate-2

logsalertsupdate

idempotent
logsalertspartialupdate

logsalertspartialupdate

idempotent
logsalertspartialupdate-2

logsalertspartialupdate

idempotent
logsalertsdestroy

logsalertsdestroy

idempotent
logsalertsdestroy-2

logsalertsdestroy

idempotent
create-notification-destination-this-alert-3

Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.

create-notification-destination-this-alert-4

Create a notification destination for this alert. One HogFunction is created per alert event kind (firing, resolved, ...) atomically.

delete-notification-destination-deleting-its-3

Delete a notification destination by deleting its HogFunction group atomically.

delete-notification-destination-deleting-its-4

Delete a notification destination by deleting its HogFunction group atomically.

paginated-event-history-this-alert-3

Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c

read-only idempotent
paginated-event-history-this-alert-4

Paginated event history for this alert, newest first. Returns state transitions, errored checks, and user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check rows (where state didn't c

read-only idempotent
reset-broken-alert-clears-consecutive-3

Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.

reset-broken-alert-clears-consecutive-4

Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.

logsattributesretrieve

logsattributesretrieve

read-only idempotent
logsattributesretrieve-2

logsattributesretrieve

read-only idempotent
logscountrangescreate

logscountrangescreate

logscountrangescreate-2

logscountrangescreate

logscountcreate

logscountcreate

logscountcreate-2

logscountcreate

logsexportcreate

logsexportcreate

logsexportcreate-2

logsexportcreate

logshaslogsretrieve

logshaslogsretrieve

read-only idempotent
logshaslogsretrieve-2

logshaslogsretrieve

read-only idempotent
logsquerycreate

logsquerycreate

read-only
logsquerycreate-2

logsquerycreate

read-only
logssamplingruleslist

logssamplingruleslist

read-only idempotent
logssamplingruleslist-2

logssamplingruleslist

read-only idempotent
logssamplingrulescreate

logssamplingrulescreate

logssamplingrulescreate-2

logssamplingrulescreate

atomically-reassign-priorities-so-given-3

Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).

atomically-reassign-priorities-so-given-4

Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).

logssamplingrulesretrieve

logssamplingrulesretrieve

read-only idempotent
logssamplingrulesretrieve-2

logssamplingrulesretrieve

read-only idempotent
logssamplingrulesupdate

logssamplingrulesupdate

idempotent
logssamplingrulesupdate-2

logssamplingrulesupdate

idempotent
logssamplingrulespartialupdate

logssamplingrulespartialupdate

idempotent
logssamplingrulespartialupdate-2

logssamplingrulespartialupdate

idempotent
logssamplingrulesdestroy

logssamplingrulesdestroy

idempotent
logssamplingrulesdestroy-2

logssamplingrulesdestroy

idempotent
dry-run-estimate-how-much-3

Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).

dry-run-estimate-how-much-4

Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation is wired).

logsservicescreate

logsservicescreate

logsservicescreate-2

logsservicescreate

logssparklinecreate

logssparklinecreate

logssparklinecreate-2

logssparklinecreate

logsvaluesretrieve

logsvaluesretrieve

read-only idempotent
logsvaluesretrieve-2

logsvaluesretrieve

read-only idempotent

Capability Spec

posthog-logs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PostHog API — logs
  description: 'PostHog API — logs. 125 operations. Lead operation: logs. Self-contained Naftiko capability covering one Posthog
    business surface.'
  tags:
  - Posthog
  - logs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: posthog-logs
    baseUri: ''
    description: PostHog API — logs business capability. Self-contained, no shared references.
    resources:
    - name: api-environments-environment_id-logs-alerts
      path: /api/environments/{environment_id}/logs/alerts/
      operations:
      - name: environmentslogsalertslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
      - name: environmentslogsalertslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
      - name: environmentslogsalertscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentslogsalertscreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-environments-environment_id-logs-alerts-simulate
      path: /api/environments/{environment_id}/logs/alerts/simulate/
      operations:
      - name: environmentslogsalertssimulatecreate
        method: POST
        description: Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records
          are created.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogsalertssimulatecreate
        method: POST
        description: Simulate a logs alert on historical data using the full state machine. Read-only — no alert check records
          are created.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-alerts-id
      path: /api/environments/{environment_id}/logs/alerts/{id}/
      operations:
      - name: environmentslogsalertsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
      - name: environmentslogsalertsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
      - name: environmentslogsalertsupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentslogsalertsupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentslogsalertspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentslogsalertspartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentslogsalertsdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
      - name: environmentslogsalertsdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
    - name: api-environments-environment_id-logs-alerts-id-destinations
      path: /api/environments/{environment_id}/logs/alerts/{id}/destinations/
      operations:
      - name: environmentslogsalertsdestinationscreate
        method: POST
        description: Create a notification destination for this alert. One HogFunction is created per alert event kind (firing,
          resolved, ...) atomically.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogsalertsdestinationscreate
        method: POST
        description: Create a notification destination for this alert. One HogFunction is created per alert event kind (firing,
          resolved, ...) atomically.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-alerts-id-destinations-delete
      path: /api/environments/{environment_id}/logs/alerts/{id}/destinations/delete/
      operations:
      - name: environmentslogsalertsdestinationsdeletecreate
        method: POST
        description: Delete a notification destination by deleting its HogFunction group atomically.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogsalertsdestinationsdeletecreate
        method: POST
        description: Delete a notification destination by deleting its HogFunction group atomically.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-alerts-id-events
      path: /api/environments/{environment_id}/logs/alerts/{id}/events/
      operations:
      - name: environmentslogsalertseventslist
        method: GET
        description: Paginated event history for this alert, newest first. Returns state transitions, errored checks, and
          user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check
          rows (where state didn't c
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
      - name: environmentslogsalertseventslist
        method: GET
        description: Paginated event history for this alert, newest first. Returns state transitions, errored checks, and
          user-initiated control-plane rows (reset, enable/disable, snooze/unsnooze, threshold change) — quiet no-op check
          rows (where state didn't c
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
    - name: api-environments-environment_id-logs-alerts-id-reset
      path: /api/environments/{environment_id}/logs/alerts/{id}/reset/
      operations:
      - name: environmentslogsalertsresetcreate
        method: POST
        description: Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
      - name: environmentslogsalertsresetcreate
        method: POST
        description: Reset a broken alert. Clears the consecutive-failure counter and schedules an immediate recheck.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs alert configuration.
          required: true
    - name: api-environments-environment_id-logs-attributes
      path: /api/environments/{environment_id}/logs/attributes/
      operations:
      - name: environmentslogsattributesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: attribute_type
          in: query
          type: string
          description: 'Type of attributes: "log" for log attributes, "resource" for resource attributes. Defaults to "log".'
        - name: dateRange
          in: query
          type: string
          description: Date range to search within. Defaults to last hour.
        - name: filterGroup
          in: query
          type: array
          description: Property filters to narrow which logs are scanned for attributes.
        - name: limit
          in: query
          type: integer
          description: 'Max results (default: 100)'
        - name: offset
          in: query
          type: integer
          description: 'Pagination offset (default: 0)'
        - name: search
          in: query
          type: string
          description: Search filter for attribute names
        - name: search_values
          in: query
          type: boolean
          description: When true, the search query also matches attribute values (not just keys). Each result indicates whether
            it matched on key or value.
        - name: serviceNames
          in: query
          type: array
          description: Filter attributes to those appearing in logs from these services.
      - name: environmentslogsattributesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: attribute_type
          in: query
          type: string
          description: 'Type of attributes: "log" for log attributes, "resource" for resource attributes. Defaults to "log".'
        - name: dateRange
          in: query
          type: string
          description: Date range to search within. Defaults to last hour.
        - name: filterGroup
          in: query
          type: array
          description: Property filters to narrow which logs are scanned for attributes.
        - name: limit
          in: query
          type: integer
          description: 'Max results (default: 100)'
        - name: offset
          in: query
          type: integer
          description: 'Pagination offset (default: 0)'
        - name: search
          in: query
          type: string
          description: Search filter for attribute names
        - name: search_values
          in: query
          type: boolean
          description: When true, the search query also matches attribute values (not just keys). Each result indicates whether
            it matched on key or value.
        - name: serviceNames
          in: query
          type: array
          description: Filter attributes to those appearing in logs from these services.
    - name: api-environments-environment_id-logs-count-ranges
      path: /api/environments/{environment_id}/logs/count-ranges/
      operations:
      - name: environmentslogscountrangescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogscountrangescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-count
      path: /api/environments/{environment_id}/logs/count/
      operations:
      - name: environmentslogscountcreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogscountcreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-export
      path: /api/environments/{environment_id}/logs/export/
      operations:
      - name: environmentslogsexportcreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environmentslogsexportcreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-logs-has_logs
      path: /api/environments/{environment_id}/logs/has_logs/
      operations:
      - name: environmentslogshaslogsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: environmentslogshaslogsretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-environments-environment_id-logs-query
      path: /api/environments/{environment_id}/logs/query/
      operations:
      - name: environmentslogsquerycreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogsquerycreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-sampling_rules
      path: /api/environments/{environment_id}/logs/sampling_rules/
      operations:
      - name: environmentslogssamplingruleslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
      - name: environmentslogssamplingruleslist
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
      - name: environmentslogssamplingrulescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogssamplingrulescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-sampling_rules-reorder
      path: /api/environments/{environment_id}/logs/sampling_rules/reorder/
      operations:
      - name: environmentslogssamplingrulesreordercreate
        method: POST
        description: Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogssamplingrulesreordercreate
        method: POST
        description: Atomically reassign priorities so the given ID order maps to ascending priorities (0..n-1).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Number of results to return per page.
        - name: offset
          in: query
          type: integer
          description: The initial index from which to return the results.
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-sampling_rules-id
      path: /api/environments/{environment_id}/logs/sampling_rules/{id}/
      operations:
      - name: environmentslogssamplingrulesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
      - name: environmentslogssamplingrulesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
      - name: environmentslogssamplingrulesupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogssamplingrulesupdate
        method: PUT
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogssamplingrulespartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentslogssamplingrulespartialupdate
        method: PATCH
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: environmentslogssamplingrulesdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
      - name: environmentslogssamplingrulesdestroy
        method: DELETE
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
    - name: api-environments-environment_id-logs-sampling_rules-id-simulate
      path: /api/environments/{environment_id}/logs/sampling_rules/{id}/simulate/
      operations:
      - name: environmentslogssamplingrulessimulatecreate
        method: POST
        description: Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation
          is wired).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
      - name: environmentslogssamplingrulessimulatecreate
        method: POST
        description: Dry-run estimate for how much volume this rule would remove (placeholder response until CH-backed simulation
          is wired).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: A UUID string identifying this logs exclusion rule.
          required: true
    - name: api-environments-environment_id-logs-services
      path: /api/environments/{environment_id}/logs/services/
      operations:
      - name: environmentslogsservicescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogsservicescreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-sparkline
      path: /api/environments/{environment_id}/logs/sparkline/
      operations:
      - name: environmentslogssparklinecreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: environmentslogssparklinecreate
        method: POST
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-environments-environment_id-logs-values
      path: /api/environments/{environment_id}/logs/values/
      operations:
      - name: environmentslogsvaluesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: attribute_type
          in: query
          type: string
          description: 'Type of attribute: "log" or "resource". Defaults to "log".'
        - name: dateRange
          in: query
          type: string
          description: Date range to search within. Defaults to last hour.
        - name: filterGroup
          in: query
          type: array
          description: Property filters to narrow which logs are scanned for values.
        - name: key
          in: query
          type: string
          description: The attribute key to get values for
          required: true
        - name: serviceNames
          in: query
          type: array
          description: Filter values to those appearing in logs from these services.
        - name: value
          in: query
          type: string
          description: Search filter for attribute values
      - name: environmentslogsvaluesretrieve
        method: GET
        description: ''
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: attribute_type
          in: query
          type: string
          description: 'Type of attribute: "log" or "resource". Defaults to "log".'
        - name: dateRange
          in: query
          type: string
          descri

# --- truncated at 32 KB (164 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/capabilities/posthog-logs.yaml