Documentation Index
Fetch the complete documentation index at: https://docs.logclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
| Status | Meaning |
|---|---|
green | All primary and replica shards assigned |
yellow | All primary shards assigned, some replicas unassigned |
red | Some primary shards unassigned — data may be unavailable |
List Indices
Response
Search Logs
Request Body
Response
Common Query Patterns
All errors in the last hour:Document Count
Response
Document Schema
Each indexed log document has these fields:| Field | Type | Description |
|---|---|---|
timestamp | date | ISO-8601 timestamp |
service | keyword | Service name (from service.name resource attribute) |
level | keyword | Log level: INFO, WARN, ERROR, FATAL |
message | text | Log message body |
trace_id | keyword | Distributed trace ID |
span_id | keyword | Span ID |
host | keyword | Hostname or pod name |
tenant_id | keyword | Tenant identifier |
anomaly_score | float | Z-score from anomaly detection (0 if normal) |
is_anomaly | boolean | Whether the document triggered an anomaly alert |
batch_id | keyword | Upload batch identifier (for file uploads) |
environment | keyword | Environment tag (production, staging, dev) |
region | keyword | Cloud region |
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.