Skip to main content
StackOne captures detailed logs for every API request. You can integrate these logs with your observability stack for centralized monitoring, alerting, and debugging.
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:

Log Entry Structure

Key Fields for Monitoring


Filter Logs

See the List Logs API Reference for all available filter parameters including date ranges, account IDs, providers, status codes, and pagination options.

Grafana Direct Polling

The simplest approach is to let Grafana poll the StackOne API directly using the Infinity data source.

Setup

  1. Install the Infinity plugin in Grafana
  2. 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}
This approach is best for dashboards and ad-hoc analysis. For real-time alerting or high-volume ingestion, use the sync worker approach below.

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.
Popular approaches include using Temporal workflows, AWS Lambda with EventBridge schedules, or simple cron jobs. The core pattern is the same: poll for new logs since your last sync, then forward to your platform.

Core Pattern

The essential StackOne integration is fetching logs with cursor-based pagination:

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

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