Log streams

The event log, delivered as it is sealed to storage the organization controls, in its own region: an HTTPS endpoint such as a SIEM, or a bucket in Amazon S3, Google Cloud Storage or Azure Blob Storage. Delivery is at least once and in chain order. An https stream posts CloudEvents JSON batches (application/cloudevents-batch+json). A bucket stream writes each batch as one object of gzipped JSON Lines, named PREFIX/YYYY/MM/DD/FIRST-LAST.jsonl.gz by the UTC date of its first event and the chainseq of its first and last links, so names sort in chain order. Each event carries chainseq and chainhash, and the signed checkpoints are events too, so the copy can be checked against /.well-known/jwks.json without Passway. A batch counts as delivered on a 2xx; failures are retried with backoff up to five minutes. status says how a stream is doing, and com.passway.log_stream.behind and .recovered events say when that changes.

The log stream model

A log stream.

Properties

  • Name
    id
    Type
    string
    Description

    Log stream ID.

  • Name
    etag
    Type
    string
    Description

    Current version. Deliveries do not change it.

  • Name
    name
    Type
    string
    Description

    Display name, unique within the organization.

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    kind
    Type
    string
    Description

    Where it delivers. One of https, s3, google_cloud_storage, azure_blob.

  • Name
    url
    Type
    string
    Description

    For https, the endpoint, on a public address. For a bucket, the bucket and the prefix objects are written under.

  • Name
    enabled
    Type
    boolean
    Description

    Whether it delivers.

  • Name
    authorization_set
    Type
    boolean
    Description

    For https: whether an Authorization header is set. Its value is kept sealed and never returned.

  • Name
    credentials_set
    Type
    boolean
    Description

    For a bucket: whether credentials are set. They are kept sealed and never returned.

  • Name
    status
    Type
    object
    Description

    Delivery, as of the request.

  • Name
    status.state
    Type
    string
    Description

    How it is doing. One of healthy, behind, failing, disabled.

  • Name
    status.delivered_seq
    Type
    integer
    Description

    The chainseq of the last event delivered, or null before any. Can be null.

  • Name
    status.delivered_at
    Type
    timestamp
    Description

    When that delivery was acknowledged. Can be null.

  • Name
    status.lag
    Type
    integer
    Description

    Sealed events not yet delivered.

  • Name
    status.skipped
    Type
    integer
    Description

    Events purged by retention before the stream delivered them. A stream that falls behind by more than the retention loses events.

  • Name
    status.last_error
    Type
    string
    Description

    Why the last failed delivery failed, kept until a delivery succeeds. Can be null.

  • Name
    status.last_error_at
    Type
    timestamp
    Description

    When it failed. Can be null.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    managed_by
    Type
    string
    Description

    The tool that manages this resource, such as terraform. Can be null.

  • Name
    created_at
    Type
    timestamp
    Description

    When the stream was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    When the stream last changed.


GET/v1/log-streams

List log streams

Needs the log-streams:read scope.

Query parameters

  • Name
    page_size
    Type
    integer
    Description

    Results per page, 1 to 200. 0 or absent means 50; more than 200 means 200 (AIP-158).

  • Name
    page_token
    Type
    string
    Description

    next_page_token from the previous page.

  • Name
    updated_since
    Type
    timestamp
    Description

    Only resources changed at or after this time.

  • Name
    enabled
    Type
    boolean
    Description

    Only enabled, or only paused, streams.

Request

GET
/v1/log-streams
curl https://acme.ext.passway.com/v1/log-streams \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "data": [
    {
      "id": "lstr_01jd8k3m2v9x4q7r5t6w8y0z1a",
      "etag": "3f9a",
      "name": "…",
      "description": "…",
      "kind": "https",
      "url": "https://logs.example.com/passway",
      "enabled": true,
      "authorization_set": true,
      "credentials_set": true,
      "status": {
        "state": "healthy",
        "delivered_seq": null,
        "delivered_at": "2026-11-30T14:02:11Z",
        "lag": 1,
        "skipped": 1,
        "last_error": null,
        "last_error_at": "2026-11-30T14:02:11Z"
      },
      "labels": {
        "passway.example/cost-center": "4410",
        "team": "facilities"
      },
      "managed_by": null,
      "created_at": "2026-11-30T14:02:11Z",
      "updated_at": "2026-11-30T14:02:11Z"
    }
  ],
  "next_page_token": null
}

POST/v1/log-streams

Create a log stream

authorization is kept sealed and never returned. start is now (the default) or oldest, to deliver everything the log still keeps.

Needs the log-streams:write scope.

Headers

  • Name
    Idempotency-Key
    Type
    string
    Description

    A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns 422; repeating it while the first is still running returns 409 with Retry-After.

Required attributes

  • Name
    name
    Type
    string
    Description

    Display name, unique within the organization.

  • Name
    url
    Type
    string
    Description

    For https, the endpoint, on a public address. For a bucket, https://BUCKET.s3.REGION.amazonaws.com/PREFIX, https://storage.googleapis.com/BUCKET/PREFIX or https://ACCOUNT.blob.core.windows.net/CONTAINER/PREFIX. The prefix may be empty.

Optional attributes

  • Name
    description
    Type
    string
    Description

    Free text.

  • Name
    kind
    Type
    string
    Description

    Where it delivers. Default https. Set when it is created. One of https, s3, google_cloud_storage, azure_blob.

  • Name
    enabled
    Type
    boolean
    Description

    Whether it delivers. Default true.

  • Name
    labels
    Type
    object
    Description

    Labels.

  • Name
    managed_by
    Type
    string
    Description

    The tool that manages this resource. Terraform sets terraform.

Request

POST
/v1/log-streams
curl -X POST https://acme.ext.passway.com/v1/log-streams \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "splunk",
    "kind": "https",
    "url": "https://http-inputs-acme.splunkcloud.com/services/collector/raw",
    "labels": {
      "passway.example/cost-center": "4410",
      "team": "facilities"
    }
  }'

Response

{
  "id": "lstr_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "…",
  "description": "…",
  "kind": "https",
  "url": "https://logs.example.com/passway",
  "enabled": true,
  "authorization_set": true,
  "credentials_set": true,
  "status": {
    "state": "healthy",
    "delivered_seq": null,
    "delivered_at": "2026-11-30T14:02:11Z",
    "lag": 1,
    "skipped": 1,
    "last_error": null,
    "last_error_at": "2026-11-30T14:02:11Z"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": null,
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

GET/v1/log-streams/{log_stream_id}

Get a log stream

Needs the log-streams:read scope.

Path parameters

  • Name
    log_stream_id
    Type
    string
    Description

    Log stream ID: lstr_ followed by 1 to 64 lowercase letters and digits.

Request

GET
/v1/log-streams/{log_stream_id}
curl https://acme.ext.passway.com/v1/log-streams/lstr_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN"

Response

{
  "id": "lstr_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "…",
  "description": "…",
  "kind": "https",
  "url": "https://logs.example.com/passway",
  "enabled": true,
  "authorization_set": true,
  "credentials_set": true,
  "status": {
    "state": "healthy",
    "delivered_seq": null,
    "delivered_at": "2026-11-30T14:02:11Z",
    "lag": 1,
    "skipped": 1,
    "last_error": null,
    "last_error_at": "2026-11-30T14:02:11Z"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": null,
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

PATCH/v1/log-streams/{log_stream_id}

Update a log stream

A JSON merge patch (RFC 7396): fields in the body replace the current ones, null removes a field where the schema allows null, and objects such as labels are merged. Requires If-Match with the current etag.

Needs the log-streams:write scope.

Path parameters

  • Name
    log_stream_id
    Type
    string
    Description

    Log stream ID: lstr_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    The resource's current etag, in double quotes. Required.

Optional attributes

  • Name
    name
    Type
    string
    Description

    New name.

  • Name
    description
    Type
    string
    Description

    New description.

  • Name
    url
    Type
    string
    Description

    New endpoint. Delivery continues from where it was. A bucket stream's patch may change only the prefix: another bucket, region or account takes new credentials, through :set-credentials.

  • Name
    enabled
    Type
    boolean
    Description

    Pause (false) or resume (true) delivery. A resumed stream picks up where it stopped, if retention still keeps those events.

  • Name
    labels
    Type
    object
    Description

    Labels to set or remove, or null to remove every label. Can be null.

  • Name
    managed_by
    Type
    string
    Description

    New managing tool, or null to clear it. Can be null.

Request

PATCH
/v1/log-streams/{log_stream_id}
curl -X PATCH https://acme.ext.passway.com/v1/log-streams/lstr_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"' \
  -H "Content-Type: application/merge-patch+json" \
  -d '{
    "labels": {
      "old-label": null,
      "team": "security"
    }
  }'

Response

{
  "id": "lstr_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "…",
  "description": "…",
  "kind": "https",
  "url": "https://logs.example.com/passway",
  "enabled": true,
  "authorization_set": true,
  "credentials_set": true,
  "status": {
    "state": "healthy",
    "delivered_seq": null,
    "delivered_at": "2026-11-30T14:02:11Z",
    "lag": 1,
    "skipped": 1,
    "last_error": null,
    "last_error_at": "2026-11-30T14:02:11Z"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": null,
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

DELETE/v1/log-streams/{log_stream_id}

Delete a log stream

Delivery stops at once.

Needs the log-streams:write scope.

Path parameters

  • Name
    log_stream_id
    Type
    string
    Description

    Log stream ID: lstr_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    The resource's current etag, in double quotes. Required.

Request

DELETE
/v1/log-streams/{log_stream_id}
curl -X DELETE https://acme.ext.passway.com/v1/log-streams/lstr_01jd8k3m2v9x4q7r5t6w8y0z1a \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H 'If-Match: "3f9a"'

Response

204 Deleted

POST/v1/log-streams/{log_stream_id}:set-authorization

Set a log stream's Authorization header

Replaces the Authorization header an https stream sends, or with null sends none. It is kept sealed and never returned. A bucket stream returns 409.

Needs the log-streams:write scope.

Path parameters

  • Name
    log_stream_id
    Type
    string
    Description

    Log stream ID: lstr_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    If set, the action only runs if the resource's etag still matches.

  • Name
    Idempotency-Key
    Type
    string
    Description

    A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns 422; repeating it while the first is still running returns 409 with Retry-After.

Required attributes

  • Name
    authorization
    Type
    string
    Description

    The new Authorization header, or null to send none. Required: leaving it out is not the same as null. Can be null.

Request

POST
/v1/log-streams/{log_stream_id}:set-authorization
curl -X POST https://acme.ext.passway.com/v1/log-streams/lstr_01jd8k3m2v9x4q7r5t6w8y0z1a:set-authorization \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "authorization": null
  }'

Response

{
  "id": "lstr_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "…",
  "description": "…",
  "kind": "https",
  "url": "https://logs.example.com/passway",
  "enabled": true,
  "authorization_set": true,
  "credentials_set": true,
  "status": {
    "state": "healthy",
    "delivered_seq": null,
    "delivered_at": "2026-11-30T14:02:11Z",
    "lag": 1,
    "skipped": 1,
    "last_error": null,
    "last_error_at": "2026-11-30T14:02:11Z"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": null,
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}

POST/v1/log-streams/{log_stream_id}:set-credentials

Set a bucket stream's credentials

Replaces the credentials a bucket stream writes with, in the form its kind takes: ACCESS_KEY_ID:SECRET_ACCESS_KEY for s3, a service account's JSON key file for google_cloud_storage, a SAS token for azure_blob. They are kept sealed and never returned. An https stream returns 409.

Needs the log-streams:write scope.

Path parameters

  • Name
    log_stream_id
    Type
    string
    Description

    Log stream ID: lstr_ followed by 1 to 64 lowercase letters and digits.

Headers

  • Name
    If-Match
    Type
    string
    Description

    If set, the action only runs if the resource's etag still matches.

  • Name
    Idempotency-Key
    Type
    string
    Description

    A unique key, such as a UUID. Repeating a successful request with the same key within 24 hours returns the original response; reusing it for a different request returns 422; repeating it while the first is still running returns 409 with Retry-After.

Required attributes

  • Name
    credentials
    Type
    string
    Description

    The bucket's new credentials, in the form the stream's kind takes (see credentials on create). Kept sealed; never returned.

Optional attributes

  • Name
    url
    Type
    string
    Description

    A new url, set together with the credentials. This is the only way to point a bucket stream at another bucket, S3 region or Azure storage account: a patch may change only the prefix, so credentials never reach a destination they weren't set for. Delivery continues from where it was. Can be null.

Request

POST
/v1/log-streams/{log_stream_id}:set-credentials
curl -X POST https://acme.ext.passway.com/v1/log-streams/lstr_01jd8k3m2v9x4q7r5t6w8y0z1a:set-credentials \
  -H "Authorization: Bearer $PASSWAY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "credentials": "…"
  }'

Response

{
  "id": "lstr_01jd8k3m2v9x4q7r5t6w8y0z1a",
  "etag": "3f9a",
  "name": "…",
  "description": "…",
  "kind": "https",
  "url": "https://logs.example.com/passway",
  "enabled": true,
  "authorization_set": true,
  "credentials_set": true,
  "status": {
    "state": "healthy",
    "delivered_seq": null,
    "delivered_at": "2026-11-30T14:02:11Z",
    "lag": 1,
    "skipped": 1,
    "last_error": null,
    "last_error_at": "2026-11-30T14:02:11Z"
  },
  "labels": {
    "passway.example/cost-center": "4410",
    "team": "facilities"
  },
  "managed_by": null,
  "created_at": "2026-11-30T14:02:11Z",
  "updated_at": "2026-11-30T14:02:11Z"
}