Programmatic Access to Fly logs via quickwit

I’m building a customer service bot that needs to query our application logs programmatically. Currently, I can access logs through the Grafana dashboard at fly-metrics.net,
but I need API access for automated queries.

What I’ve tried:

  • :white_check_mark: Fly.io GraphQL API works with my token: fly auth token
  • :cross_mark: Direct Quickwit API: Returns “Invalid API key” with Fly.io token
  • :cross_mark: Grafana API: Session cookies expire, no service account option visible
  • :cross_mark: REST endpoints like /api/v1/apps/{app}/logs: 404 not found

My use case:
I want to query logs for patterns like “discount code validation errors” to help with customer support. Something like:
curl “https://fly-metrics.net/api/…”
-H “Authorization: Bearer $FLY_TOKEN”
-d ‘{“query”: “discount code validation”, “timeRange”: “7d”}’

Questions:

  1. Is there a way to get API tokens for the logging infrastructure (Quickwit/Grafana)?
  2. Does Fly.io have a native logs API I’m missing?
  3. Should I integrate a separate logging service (Papertrail, Better Stack) for programmatic access?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.