Applies to:
- Plan -
- Deployment -
Summary
Overview: Service tokens for log ingestion require specific permission combinations to write logs successfully to Braintrust projects. Key insight: Log writes use merge/update operations internally, requiring update permissions even for new log creation.How log ingestion permissions work
Required permissions
| Permission | Purpose | Required for ingestion? |
|---|---|---|
| update | Performs the actual log write (insert or merge) | Yes |
| read | Read project metadata / fetch logs back | Only if the token also reads/fetches |
| delete | Delete log rows | Only for deletes |
Why Logs Create alone fails
Logs Create permission is insufficient because:
- All log writes use a merge/update operation internally
- The system does not distinguish between inserting new logs and updating existing ones
- Even “new” log entries follow the update code path