Logs Archive Searches

Rehydrate an Archive Search

Turn a plain Archive Search into a Search & Rehydration by indexing the matched logs into a retained historical view. Rehydration is the only thing this endpoint can change, and it only applies to a search that has already finished scanning.

patch/api/v2/logs/archive_searches/{archive_search_id}

Request

Path parameters

archive_search_idstring required

Unique identifier of the Archive Search.

Request body

Example request

{
  "data": {
    "attributes": {
      "rehydration": {
        "retention_days": 15,
        "tier": "standard"
      }
    },
    "type": "archive_search"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "archive_id": "mhmyYmyLTOaFYKvhNadu1w",
      "bytes_scanned": 402764439,
      "completed_at": "2026-01-02T12:30:00Z",
      "created_at": "2026-01-02T12:00:00Z",
      "description": "Investigating the checkout latency spike.",
      "events_scanned": 1500,
      "expected_duration": 120,
      "from": "2026-01-01T00:00:00Z",
      "name": "checkout-latency-investigation",
      "query": "service:checkout status:error",
      "rehydration": {
        "max_rehydrated_events": 1000000,
        "retention_days": 15,
        "tier": "standard"
      },
      "status": "RUNNING",
      "to": "2026-01-02T00:00:00Z"
    },
    "id": "nv2eu4srgyzdkulggjzg2zkmmzifa2rum5iq",
    "type": "archive_search"
  }
}

Changes

Changes to this operation have not been checked yet.