Quick start

First log in under a minute. No SDK, no agent, no config file.

1. Create an app

Name it in the dashboard and copy your API key. It is shown exactly once.

2. Send a log

Level, message, and any JSON you like in attrs. Replace the origin with your Log Dog origin (http://localhost:3000 in dev, or the PORT you chose) and the key with yours.

curl -X POST http://localhost:3000/v1/logs \
  -H "Authorization: Bearer $LOGDOG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "level": "error",
    "message": "payment failed",
    "attrs": {
      "order_id": 8812,
      "err": "card_declined"
    }
  }'

A successful request answers 202 with {"accepted": 1}. The full request and response reference is on the POST /v1/logs page.

3. Watch it arrive

Open Live tail in the dashboard and the entry is already there. Search it with the query syntax.