Skip to main content

OpenSearch API

LogClaw stores processed logs in OpenSearch. The Dashboard proxies OpenSearch API requests with automatic Basic Auth injection. Base URL: https://logclaw-opensearch:9200 Dashboard proxy: /api/opensearch/*

Index Pattern

LogClaw writes to daily indices: logclaw-logs-YYYY.MM.dd Wildcard for all logs: logclaw-logs-*

Cluster Health

Response


List Indices

Returns all indices with size, document count, and health status.

Response


Search Logs

Query logs using the OpenSearch Query DSL.

Request Body

Response

Common Query Patterns

All errors in the last hour:
Logs by trace ID:
Anomalies above threshold:
Full-text search:

Document Count

Response


Document Schema

Each indexed log document has these fields:
Custom OTLP attributes are flattened as top-level fields. For example, {"key": "user.id", "value": {"stringValue": "12345"}} becomes "user.id": "12345" in the indexed document.