Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 2.26 KB

quickstart.mdx

File metadata and controls

55 lines (42 loc) · 2.26 KB
title Get started with Rootprint in under five minutes
description Deploy Rootprint with Docker Compose, create an ingest API key, and send your first logs.

Deploy Rootprint locally and send your first logs. You need only Docker.

Download the Compose file and start it. For other options, see [Docker Compose](/install/docker-compose).
```bash
curl -o docker-compose.yml https://docs.rootprint.io/files/docker-compose.full.yaml
docker compose up -d
```
Open [http://localhost:8282](http://localhost:8282). On first boot, Rootprint redirects you to the setup wizard. Enter the admin credentials and submit the form. 1. In the sidebar, open **Settings → API keys**. 2. Click **Create ingest key**, give it a name, and pick the bundled `otel-logs-v0_9` index. 3. Copy the key, then click **Done**. To see it again later, click the eye icon on the key's row. Set `TOKEN` to your ingest API key and post two NDJSON log lines:
```bash
export TOKEN='<your-ingest-api-key>'
curl -X POST 'http://localhost:8282/api/ingest/ndjson' \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/x-ndjson' \
  --data-binary @- <<EOF
{"timestamp_nanos":$(date +%s)000000000,"severity_text":"INFO","body":{"message":"User logged in"},"service_name":"frontend","attributes":{"user_id":"alice"}}
{"timestamp_nanos":$(date +%s)000000000,"severity_text":"ERROR","body":{"message":"Connection timeout"},"service_name":"api-gateway"}
EOF
```
Go back to [http://localhost:8282](http://localhost:8282) and select the `otel-logs-v0_9` index. The two log entries you sent appear in the results. Try filtering by `severity_text:ERROR` to see only the error entry.

Next steps