Your Application Logs Can't Explain Every Network Failure
A service returns a timeout. The application logs show the request started, then nothing. The database looks healthy. The target service is running.
So where did the packet go?
In distributed systems, observability cannot stop at the application boundary. Network paths are part of the production system too.
The visibility gap
Application logs
|
v
Service A ---- network path ---- Service B
|
Where did it fail?
|
Network flow evidence
Application traces can show request timing between instrumented services. Network flow records provide a different view: IP-level traffic, direction, endpoints, and indicators of packet loss.
What Cloud WAN Flow Logs add
AWS Cloud WAN Flow Logs capture traffic flowing through a Cloud WAN core network. Records can be delivered to CloudWatch Logs, Amazon S3, or Amazon Data Firehose.
Useful fields include:
- Source and destination addresses
- Source and destination VPCs and attachments
- Source and destination Regions
- Traffic direction and protocol
- Packets lost due to no route, blackhole, MTU, or TTL issues
This helps teams investigate whether a connectivity problem is associated with routing, segmentation, or a particular network path.
A practical investigation workflow
User reports timeout
|
Check application trace
|
Identify source and destination
|
Inspect VPC / Cloud WAN flow records
|
Check route and packet-loss indicators
|
Correlate with infrastructure changes
|
Confirm the network path is healthy
One important detail: flow logs are not real-time packet captures. Delivery can take several minutes, and some records may be incomplete. They should complement application traces, metrics, and route analysis, not replace them.
Production checklist
- Enable flow logging at the network layers you need to investigate.
- Choose useful record fields and destinations.
- Monitor missing, skipped, or incomplete records.
- Control ingestion and retention costs.
- Correlate network evidence with application traces and infrastructure changes.
- Restrict access to logs containing network metadata.
The takeaway: A healthy application does not guarantee a healthy network path. Production observability needs both perspectives.
Discussion
When a request times out across multiple AWS accounts or Regions, what evidence do you check first: application traces, network flow logs, or route changes?
#PrototypeToProduction #AWS #CloudWAN #Networking #Observability
Loading article