sklp logs

sklp logs [flags]

Description

Reads logs aggregated across a stack's projects. The stack is derived from --project (or SKLP_PROJECT) unless --stack is given. Examples: sklp logs --severity ERROR --since 1h sklp logs -q timeout --since 15m --json

Flags

FlagAliasesTypeDefaultEnvDescription
--project—string—SKLP_PROJECTcomma-separated project ids (defaults to SKLP_PROJECT)
--stack—string——stack id (skips derivation from the project)
--since—string——relative window, e.g. 15m, 2h (default 1h)
--from—string——absolute RFC3339 start (mutually exclusive with --since)
--to—string——absolute RFC3339 end
--severity—string——filter by severity, e.g. ERROR
--q—string——search in message and attribute values
--source—string——filter by origin: browser or server
--limit—int100—page size (max 500)
--cursor—string——opaque cursor from a previous page
--json—bool——emit the raw API payload
--no-color—bool——disable ANSI colour (also honours $NO_COLOR; auto-off when piped)

Technical details

Technical details

Raw command JSON

{
  "path": [
    "sklp",
    "logs"
  ],
  "slug": "logs",
  "name": "logs",
  "short": "Query stack logs (severity, time range, full-text)",
  "long": "Reads logs aggregated across a stack's projects.\nThe stack is derived from --project (or SKLP_PROJECT) unless --stack is given.\n\nExamples:\n  sklp logs --severity ERROR --since 1h\n  sklp logs -q timeout --since 15m --json",
  "synopsis": "sklp logs [flags]",
  "flags": [
    {
      "name": "project",
      "usage": "comma-separated project ids (defaults to SKLP_PROJECT)",
      "type": "string",
      "envFallback": "SKLP_PROJECT"
    },
    {
      "name": "stack",
      "usage": "stack id (skips derivation from the project)",
      "type": "string"
    },
    {
      "name": "since",
      "usage": "relative window, e.g. 15m, 2h (default 1h)",
      "type": "string"
    },
    {
      "name": "from",
      "usage": "absolute RFC3339 start (mutually exclusive with --since)",
      "type": "string"
    },
    {
      "name": "to",
      "usage": "absolute RFC3339 end",
      "type": "string"
    },
    {
      "name": "severity",
      "usage": "filter by severity, e.g. ERROR",
      "type": "string"
    },
    {
      "name": "q",
      "usage": "search in message and attribute values",
      "type": "string"
    },
    {
      "name": "source",
      "usage": "filter by origin: browser or server",
      "type": "string"
    },
    {
      "name": "limit",
      "usage": "page size (max 500)",
      "type": "int",
      "default": "100"
    },
    {
      "name": "cursor",
      "usage": "opaque cursor from a previous page",
      "type": "string"
    },
    {
      "name": "json",
      "usage": "emit the raw API payload",
      "type": "bool"
    },
    {
      "name": "no-color",
      "usage": "disable ANSI colour (also honours $NO_COLOR; auto-off when piped)",
      "type": "bool"
    }
  ]
}

See also