logs

Turn a plain-language request into ranked log viewer filter candidates. Nothing is persisted. Only the request text, service names and attribute keys are sent to the models.

post/api/projects/{project_id}/logs/natural_language_query/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/logs/natural_language_query/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

querystring required

The plain-language request, for example 'error logs from checkout in the last 2 hours'.

Response

confidencenumber double nullable required

The first candidate's probability from the decision model. Null when it did not rank them.

ranked_by'decision_model' | 'proposal_order' required
  • decision_model - Decision Model
  • proposal_order - Proposal Order
dropped_countinteger required

Proposed readings dropped because they named a service or attribute key the project lacks.

Changes