Prompt
Why am I not seeing all API traffic in my logs?
Latest observation
Oct 29, 2026
OpenAI APIWeb search: off
There are a few common reasons you may not see all API traffic in your logs:
1) Logging isn’t enabled at the right layer
You may be logging only:
- application requests, but not proxy/load balancer traffic
- ingress traffic, but not internal service-to-service calls
- success responses, but not errors or retries
2) Sampling or rate limiting
Some logging/observability tools:
- sample requests instead of capturing every one
- drop logs when volume is high
- enforce quotas or ingestion limits
3) Asynchronous or buffered logging
Logs may be:
- buffered in memory and not yet flushed
- delayed by the logging pipeline
- lost if the process crashes before flush
4) Different environments or instances
You might be looking at logs from:
- one pod/container/VM instead of all replicas
- one environment (dev/staging) instead of prod
- one region or zone only
5) Requests never reach your app
Some traffic may be:
- blocked by WAF/firewall/auth
- handled by a CDN, API gateway, or cache
- failing before app-level logging happens
6) Log filtering or formatting issues
Your log query may exclude events because of:
- incorrect time range
- search filters
- missing correlation IDs
- logs written at a lower severity level than you’re querying
7) Instrumentation gaps
Your code may not log:
- background jobs
- internal API calls
- preflight
OPTIONSrequests - retries/timeouts
- streaming/long-lived connections
8) Privacy/security redaction
Some fields or entire requests may be intentionally omitted to avoid logging:
- sensitive headers
- bodies with PII
- auth tokens
What to check first
- Confirm logging is enabled at every request path
- Check whether your system uses sampling
- Verify you’re searching the correct service, region, and time window
- Compare logs at the gateway/proxy and application levels
- Look for dropped/buffered logs in your logging agent or pipeline
If you want, I can help you troubleshoot this for a specific setup like:
- Kubernetes + ingress
- AWS API Gateway / ALB / CloudWatch
- Nginx / Envoy / Istio
- Datadog / Splunk / ELK
- a specific language/framework