- Home
- Use cases
- AI gateway
- Portkey: An Audit Trail for Regulated AI Use
Portkey: An Audit Trail for Regulated AI Use
Log fields are mapped to the questions an auditor asks about AI use.
The challenge
What teams are up against
Typical situation, not a client: a health system's compliance team must answer who used which model, with what data, and what came back. The AI team routes calls through Portkey but has not checked the logs against those questions.
Our approach
How we deliver it, step by step
- 01
Write the audit questions
Who called, which app, which model, when, what was sent, what came back and what happened on failure.
- 02
List the log fields needed
Caller, app, model, time, outcome and each fallback attempt, plus how prompts and responses are handled.
- 03
Check what Portkey records
Portkey logs every LLM request, including each attempt in a fallback chain. Confirm the fields on your plan.
- 04
Decide where content lives
Portkey documents a private cloud option where prompts and responses stay in your network while the control plane stays hosted. Ask what still calls out.
- 05
Test with a sample request
Ask a reviewer to pick one call and answer every question from the logs alone.
Architecture
The components involved
From the top of the stack down
Apps call Portkey, which logs each request. A mapping table ties each log field to one audit question, with the retention period and the group that may read it.
Outcomes
What changes when it is in place
Each audit question points to a log field or to a named gap.
The location of prompt and response data is a recorded decision.
A reviewer can answer a sample question from the logs alone.
Why Duczer East
Senior practitioners, from scope to delivery
We score the starting point on paper first, then change the cheapest weak spot, so the plan rests on evidence from your own estate.
About Duczer EastFAQ
Questions we are asked about this
Where do Portkey logs live?
It depends on the deployment. Portkey documents a private cloud option that keeps prompts and responses in your network, with the control plane hosted by the vendor (Portkey docs, checked November 30, 2026).
What should an AI audit log contain?
Who called, which app and model, when, the outcome and each fallback attempt, plus a rule for how prompt and response content is kept or masked.
Related use cases
More problems we solve this way
Use cases on the same platform or for the same industries. Browse all use cases.
LiteLLM: A Self-Hosted Model Proxy for a Bank
Keys, budgets and routing are designed before a self-hosted LiteLLM proxy goes live.
Read use caseLiteLLM: Hardening a Proxy Before Production
A checklist covers auth, secrets, logging and quotas before users arrive.
Read use casePortkey: Cost Controls for a Growing AI Team
A rules table sets budgets and fallbacks per app on Portkey.
Read use caseAI Readiness Assessment: A Fixed-Scope Data Review in 2 to 4 Weeks
Find out whether your data is ready for AI before you build. Fixed scope, 2 to 4 weeks, and a plan sized against facts.
Read use caseAI Governance: Build an AI Use Case Inventory with Risk Tiers
One register of every AI use case, with owner, purpose, data, systems and a risk tier that drives how much validation each one gets.
Read use caseApigee AI Gateway: Token Quotas and Model Armor Screening
Control what applications send to models: token limits, prompt and response screening, caching and routing on the Apigee you already have.
Read use caseRelated insights
Further reading from our practitioners
Analysis and guides on the questions this use case raises. All insights.
On-Premises AI Gateway: Requirements, Options and a Checklist
Requirements, options, placement and a checklist for in-network AI traffic
AI Gateway Guardrails: PII Masking and a Test Set to Run
Where guardrails sit, what masking can and cannot catch and a test set to run
WSO2 API Manager Upgrade Runbook: Steps, Testing, Rollback and Cutover
Upgrade WSO2 API Manager in a fixed order: prepare and back up, build a parallel environment, upgrade the schema and configuration, test, cut over in stages, and keep a rollback you have already rehearsed.
Let's Talk
Talk through this use case
Tell us about your systems and where you are today. A senior practitioner replies, and only your email is required.


