> This page is for version 0.10.
> For other versions, use one of these documentation indexes:
> - Latest (default): https://docs.nvidia.com/nemo-helix/latest/llms.txt
> - 0.10: https://docs.nvidia.com/nemo-helix/v0.10/llms.txt
> - 0.9: https://docs.nvidia.com/nemo-helix/v0.9/llms.txt
> - 0.8: https://docs.nvidia.com/nemo-helix/v0.8/llms.txt
> - 0.7: https://docs.nvidia.com/nemo-helix/v0.7/llms.txt
> - 0.6: https://docs.nvidia.com/nemo-helix/v0.6/llms.txt
> - 0.5: https://docs.nvidia.com/nemo-helix/v0.5/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo-helix/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo-helix/_mcp/server.

# Query OTLP Logs from Fileset

POST http://localhost:8080/apis/files/v2/workspaces/{workspace}/filesets/{name}/otlp/v1/logs/query
Content-Type: application/json

Query logs from parquet files in a fileset.

This is an internal endpoint that runs DuckDB queries with direct storage
access.

Reference: https://docs.nvidia.com/nemo-helix/documentation/reference/api-reference/otlp/query-otlp-logs-apis-files-v-2-workspaces-workspace-filesets-name-otlp-v-1-logs-query-post

## Request

### Path parameters

- `workspace` (string, required)
- `name` (string, required)

### Body (application/json)

This endpoint expects a LogQueryRequest.

- `filters` (map from string to string, optional) — Key-value filters to apply to the query
- `limit` (integer, optional, default: 100) — Maximum number of results to return
- `page_cursor` (string, optional) — Cursor for pagination
- `tail` (integer, optional) — Number of newest log lines to return
- `artifact_base_path` (string, optional) — Folder inside the fileset the logs were nested under (must match the value used on write)

## Response

### 200

Successful Response

- `data` (list of HelixJobLog, required)
- `total` (integer, required)
- `next_page` (string, required)
- `prev_page` (string, required)

## Errors

### 422 Unprocessable Entity Error

Validation Error

- `detail` (list of ValidationError, optional)

## Types

### HelixJobLog

- `timestamp` (datetime, required)
- `job` (string, required)
- `job_step` (string, required)
- `job_task` (string, required)
- `message` (string, required)

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)
- `input` (any, optional)
- `ctx` (map from string to any, optional)

### ValidationErrorLocItems

- string
- integer

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "data": [
    {
      "timestamp": "2024-01-15T09:30:00Z",
      "job": "string",
      "job_step": "string",
      "job_task": "string",
      "message": "string"
    }
  ],
  "total": 1,
  "next_page": "string",
  "prev_page": "string"
}
```

**SDK Code**

```python
import requests

url = "http://localhost:8080/apis/files/v2/workspaces/workspace/filesets/name/otlp/v1/logs/query"

payload = {}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'http://localhost:8080/apis/files/v2/workspaces/workspace/filesets/name/otlp/v1/logs/query';
const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```