# Logs

Send OpenTelemetry logs to Altertable when you want application log records to be queryable beside product, operational, and business data.

Accepted log records are written to `opentelemetry.main.logs`.

## SDK and collector setup

Follow [Configure an exporter](/docs/opentelemetry/setup.md) for instrumentation, authentication, and OTLP/HTTP setup. See [`POST /v1/logs`](/docs/api-references/opentelemetry.md#post-v1-logs) for the request body and responses.

## Query logs

Logs are normal SQL rows once they are ingested:

```sql
SELECT
  timestamp,
  severity_text,
  body,
  trace_id,
  span_id
FROM opentelemetry.main.logs
ORDER BY timestamp DESC
LIMIT 100;
```

You can also explore logs in the Altertable Explore tab with Lucene-syntax search.

Continue with [Query telemetry](/docs/opentelemetry/query.md) to investigate and correlate signals.