This guide is for platform builders who want to integrate StackOne request logs with their existing monitoring infrastructure. For debugging individual failed requests, see Request Log Debugging. To build embedded log dashboards, see Request Log Dashboards.
Integration Approaches
Choose the approach that fits your needs:
StackOne retains logs for 90 days.
Query Request Logs
Use the Request Logs API to retrieve logs:- TypeScript SDK
- cURL
- Python
Log Entry Structure
Key Fields for Monitoring
Filter Logs
- TypeScript SDK
- cURL
Grafana Direct Polling
The simplest approach is to let Grafana poll the StackOne API directly using the Infinity data source.Setup
- Install the Infinity plugin in Grafana
- Add a new Infinity data source with these settings:
Example Query
Configure a panel with these Infinity settings:Dashboard Variables
Create variables for dynamic filtering:
Then use in queries:
/requests/logs?filter[providers]=${provider}&filter[account_ids]=${account}
Build a Log Sync Worker
For high-volume ingestion or when you need to transform logs before storing, build a sync worker that polls the StackOne API and forwards logs to your observability platform.Core Pattern
The essential StackOne integration is fetching logs with cursor-based pagination:- TypeScript SDK
- Python
Platform-Specific Examples
Grafana Loki
Datadog
OpenTelemetry
Suggested Dashboards
Key Metrics to Track
Grafana Dashboard JSON
Webhooks for Real-Time Alerts
For critical events, use webhooks instead of polling:Webhooks Guide
Configure webhooks for real-time notifications
Related
Request Logs API
Full API reference for logs
Dashboard Logs
View logs in the StackOne dashboard
Webhooks
Real-time event notifications
Error Codes
Understanding error responses