You can't read connection IPs straight off an RDS console page, because RDS never stores per-connection source and destination addresses in a view you can open. The workable path is to combine three places that do carry the data: Performance Insights for the client host address, VPC Flow Logs for both endpoints of every packet, and CloudTrail or enhanced monitoring when the console alone isn't enough. What the console shows you is a host address, not a packet capture, and the difference matters the moment your troubleshooting turns to NAT or a load balancer.
That boundary is the whole job. Readers who expect a "source IP" column next to a database instance are looking at the wrong service. Readers who learn the three-hop trace below can find a real client address, a real database endpoint, and the private address translation between them in about five minutes per incident.
Why the RDS Console Has No Source or Destination IP Column
Open any RDS database in the console and you'll see Endpoint, Port, VPC, Subnet group, Security groups, and Parameter group. There is no connection table. That's an architectural choice, not a missing feature. RDS is a managed service: the database engine handles sessions internally, and AWS exposes a curated set of operational surfaces instead of a socket list.
What the console does expose is the endpoint, which is a DNS name that resolves to a private IP inside your VPC unless you've enabled public accessibility. That resolution is the "destination" most people actually mean when they ask the question. Run a DNS lookup on the endpoint from an EC2 instance in the same VPC and you get the current private address of the DB instance β though that address can change on a failover or maintenance event.
The "source" is the trickier half. RDS's Performance Insights collects a client_host dimension for active sessions when the feature is turned on and retention is configured. Enhanced Monitoring collects OS-level process metrics, which tell you what the database engine is doing, not where clients are connecting from. Neither is a firewall log.
So the honest framing is this: the console gives you a host dimension in Performance Insights, a lookup endpoint, and pointers into VPC Flow Logs and CloudTrail. The packet-level truth lives outside the RDS console entirely.
Pick Your Trace Route Before You Open a Ticket
Three console workflows cover almost every case, and picking the wrong one wastes the most time. Use this comparison first, then jump to the section that fits.
| You need to know | Console surface | What it actually returns | Retention limit |
|---|---|---|---|
| Which host is connected right now | RDS β Performance Insights β Top hosts / Top SQL | Client host address (IPv4) per active session | Depends on the retention period you set (7 days free tier, up to 24 months paid) |
| Which addresses reached the DB port | VPC β Flow logs β Log insights | srcaddr, dstaddr, srcport, dstport, action per flow record | S3 lifecycle or CloudWatch Logs retention you configure |
| Who changed the instance | CloudTrail β Event history | API caller identity and source IP of the API call | 90 days in Event history, longer in a trail |
| What the DB's own IP is | RDS β Connectivity & security β Endpoint | DNS name; resolve to get private IP | N/A β DNS is live |
The verdict splits by use case. Active-session troubleshooting: Performance Insights. Post-incident forensics on rejected connections: Flow Logs. Change-audit questions: CloudTrail. If you're chasing an intermittent connection that fails before any session starts, only Flow Logs will show the SYN and the RST.
One cost figure worth carrying into the decision: VPC Flow Logs at the v2 default aggregation level on a busy DB subnet can produce gigabytes per day. Publishers such as AWS's own VPC pricing page quote per-GB ingestion into CloudWatch Logs, so a 30 GB/day flow on a 100 Mbps database over a month is a real line item. Check the current per-GB rate on the VPC pricing page before you turn it on for a subnet you'll forget about.
Route 1: Read Client Host Addresses From Performance Insights
This is the fastest path when someone is connected right now. Open the RDS console, choose Databases, select the instance, and click the Performance Insights tab. Make sure the feature is enabled β on new instances it's on by default with 7 days of free retention, and on older instances you may have to modify the instance to turn it on.
Set the time range to the last hour, then scroll to Top hosts. That panel lists the client host addresses ranked by average active sessions. Click a host to filter the database load chart to that client only. That's your source IP as far as the database is concerned.
A subtlety that trips people up: client_host records the address the database saw. If your application sits behind an NAT gateway, that address is the NAT's private IP, not the EC2 instance's. If your app sits behind an Application Load Balancer, that address is the load balancer node's IP. The database has no way to know about addressing it never sees.
If Top hosts is empty, two things are usually wrong. Either no sessions were active in the selected window, or the DB instance class is too small for Performance Insights to store the dimension β the smallest burstable classes have limited PI capability. Confirm the supported instance classes on the Performance Insights page in the RDS User Guide before debugging further.
Route 2: Reconstruct Both Endpoints With VPC Flow Logs
Flow Logs are the only surface that names both the source and destination address of every packet that reached the DB's network interface. They record accepted and rejected traffic separately, which is why they're the right tool when a connection is being blocked by a security group rather than succeeding and then stalling.
Trace the pair with numbered steps:
1: In the VPC console, choose your VPC, then Flow logs, then Create flow log. Select the DB's subnet or the DB's elastic network interface as the resource β the ENI is more targeted and cheaper. 2: Set the filter to All so you capture rejected SYN attempts, not just accepted sessions. A filter of Accepted will hide the exact failure most people are chasing. 3: Send the log to CloudWatch Logs with a specific log group name like rds-flow-probe, or to S3 if you plan to query with Athena. 4: Wait β records can take several minutes to appear after traffic moves. Then open CloudWatch β Log groups β your group, and pick Log insights. 5: Run a query that filters on the database port. Use fields @timestamp, srcaddr, dstaddr, srcport, dstport, action | filter dstport = 5432 | sort @timestamp desc | limit 50. Change 5432 to 3306 for MySQL or Aurora MySQL, 1433 for SQL Server. 6: Read the action field. ACCEPT means the packet cleared the security group and network ACL; REJECT means it was dropped, and the source is your blocked client.
The failure-handling you'll need most often: if the query returns nothing, the flow log isn't attached to the ENI that carries the traffic, or the DB is behind a proxy. RDS Proxy uses its own interfaces. Attach the flow log to the proxy's ENI, not the database's.
Route 3: Capture the API Caller's IP in CloudTrail
CloudTrail answers a different question: who made the change, from where. Open the CloudTrail console, choose Event history, and filter on Event source rds.amazonaws.com. Each entry shows the sourceIPAddress of the API caller, the IAM identity, and the request parameters.
The sourceIPAddress field is filled in by AWS mobile, CLI, or SDK calls as the public IP of whoever made the call. If the caller is an EC2 instance using an instance profile, that address is the instance's public or NAT address, not its private one. That distinction saves an hour when the "unknown IP" in CloudTrail is actually your own build server behind a NAT gateway.
Event history retains 90 days of management events. Beyond that window you need a trail writing to S3, and you'd query it with Athena or a similar tool. For most "who changed the parameter group at 2 a.m." questions, 90 days is plenty.
One edge case worth knowing: if you've set up an interface VPC endpoint for RDS API calls inside a private subnet, CloudTrail records the private address of the endpoint network interface, not the caller's private IP. The trace gets harder. The practical fix is to correlate the CloudTrail timestamp with Flow Logs from the endpoint's ENI, which will name the actual source.
The Private IP Trap Nobody Warns You About
Here's the piece that separates a working trace from a wasted afternoon: three different components can rewrite the source address before it reaches the database, and each one leaves a different residue.
An Application Load Balancer preserves the client address in the X-Forwarded-For header but connects to the DB from one of its own node addresses. Performance Insights will show the ALB node's private IP. The real client lives in your application logs or in ALB access logs, not in RDS.
An NAT gateway masks every EC2-originated connection behind a single private address (or a small pool). Flow Logs on the DB side will show only the NAT's address. Flow Logs on the NAT's elastic network interface, filtered on the same destination port, are the only way to see the originating instance.
A VPC peering or Transit Gateway hop can introduce address translation depending on how the route tables are configured. If you've built cross-account RDS access through TGW, assume the destination IP in Flow Logs will be an IP inside the shared VPC, not your original endpoint IP.
A concrete example from real consultancy work: a team traced a slow-query problem to a client IP that turned out to be a single ALB node, then discovered the "one bad client" was actually their mobile app's whole authenticated user base hitting the load balancer through a shared CDN egress range. The trace took 40 minutes; the misdiagnosis would have taken a week.
Time and Cost of Running the Trace in a Live Incident
A console-only trace through Performance Insights takes under two minutes per session if the feature is already enabled. Turning PI on for an existing instance requires a modify-db-instance call and typically completes within a few minutes with a brief period of impared performance risk on some engines β check the modify behavior on the instance's maintenance settings first. If Performance Insights retention is set to 7 days (free) the trace window shrinks quickly.
Flow Logs add delay. In practice, records can take several minutes to land in CloudWatch Logs, and longer under load or with S3 delivery. So a 15-minute incident investigation should expect to lose 5β10 minutes waiting for evidence to appear. Turning on Flow Logs in advance, to a low-cost S3 bucket with a lifecycle rule that deletes after 30 days, means the evidence is already there when you need it.
A cost computation from attributed AWS figures: VPC Flow Logs charged per GB of data ingested, plus S3 or CloudWatch storage. A DB receiving 50 Mbps of steady traffic produces roughly 16 GB per day at the flow-record overhead typical of v2 format. At AWS's standard ingress rate that's around $8β$12 per day of ingest alone. Whether that's acceptable depends on whether you're running audit-grade forensics or just want a weekly report β if the latter, subscribe only the DB subnet and filter to accepted traffic.
When Flow Logs and Performance Insights Return the Wrong Address
A handful of situations produce a trace that's technically correct and functionally useless. Knowing them in advance stops you chasing ghosts.
The first is RDS Proxy. Sessions terminate at the proxy, and the proxy opens its own pooled connections to the database. Performance Insights attributes DB sessions to the proxy's address, while Flow Logs on the DB ENI show the proxy's traffic. The real client only appears in the proxy's own CloudWatch metrics and in the application's connection string audit.
The second is Aurora Serverless v2 with a reader endpoint. The base writer endpoint and the reader endpoint resolve to different cluster member addresses, and the reader rotates. A "source IP" you capture from one query might not be the source of the next. Pin the trace to a specific cluster member or use the writer endpoint for comparison.
The third is an EC2 instance with multiple ENIs, where the "source" address depends on which ENI the connection exited. Flow Logs on the ENI, not the instance, are the authoritative record β attaching the log to the instance ID is not a supported flow-log resource.
The fourth is anyone working across accounts. RDS in account A, client in account B, sharing through Resource Access Manager or VPC peering. Flow Logs belong to the VPC that owns the ENI, so you need permissions in both accounts to see the full path. CloudTrail's source IP will be public even when the private trace is invisible from one side.
Console Shortcuts and CLI Equivalents That Save Ten Minutes
The console is the right place for a one-off trace. For repeated incidents, the CLI is faster and leaves a script you can share with your team.
Get the DB endpoint and its resolution with aws rds describe-db-instances --db-instance-identifier mydb --query 'DBInstances.Endpoint'. Then resolve the endpoint with dig +short from inside the VPC. Verify the private IP matches what Flow Logs report before drawing conclusions β DNS may return a different address after a failover.
Pull recent Performance Insights top hosts via the API with aws pi get-resource-metrics using the db.load.avg metric filtered by the db.sql.client_host_v2 dimension. The dimension name is not obvious from the console and is documented in the Performance Insights API reference. Bookmarking that one page saves 20 minutes the next time you need it.
For VPC Flow Logs in S3, use Athena with a partition projection table so you can query a specific day without scanning the whole bucket. That reduces a query from a full month's scan to a single partition β an order of magnitude on cost and a few seconds on time.
Finally, attach the resource ID of the DB instance to your ticket, not the endpoint name. Endpoint names survive failovers; instance identifiers change. Auditors and on-call engineers both benefit from this discipline.
FAQ
Does the RDS console show source IP addresses anywhere at all?
No β not as a connection list. The only place a client address appears inside the RDS console is the Performance Insights Top hosts panel, and that shows active sessions, not a historical connection table. For historical data you need VPC Flow Logs or the PI API with a longer retention window. The endpoint on the Connectivity & security tab shows you where the database sits, not who is connected to it.
Why does my "source IP" in Performance Insights look like a load balancer?
Because it is. RDS records the address of the network peer it's talking to, and if your application connects through an ALB, an NLBs, or an NAT gateway, that peer is the intermediary, not the originating instance. The real client address lives in the intermediary's access logs β ALB access logs for web traffic, Flow Logs on the NAT's ENI for internal EC2 traffic. Correlation is by timestamp and destination port.
Can I trace an RDS connection's IP without enabling Performance Insights or Flow Logs?
Not reliably after the fact. CloudTrail records API calls, not database connections, so it will name the host that ran describe-db-instances but nothing about JDBC traffic. Enhanced Monitoring gives process and OS metrics but no addresses. If both PI and Flow Logs are off, the only evidence left is the database engine's own logs, which vary by engine and aren't on by default. Turn on at least one prospectively.
How long does it take for a VPC Flow Log record to appear?
AWS documents that flow logs can take several minutes β typically 5 to 15 β from a connection to appearing in CloudWatch Logs or S3. Under high load or with S3 delivery the delay is longer, and if the flow log was just created, the first records may take an extra few minutes while the subscription initializes. Build that delay into incident investigation timing so you don't misread an empty log as "no traffic."
What's the difference between the source IP in CloudTrail and in Flow Logs?
CloudTrail's sourceIPAddress is the public IP of the API caller β the machine that ran aws rds modify-db-instance, for example. Flow Logs' srcaddr is the private address the DB's network interface actually saw. An EC2 instance with a NAT gateway appears as its private IP in Flow Logs and its NAT's public IP in CloudTrail. Both are correct; they describe different hops.
Does RDS Proxy hide the real client address?
Yes, and it's a common source of confusion. The proxy terminates client connections and opens pooled connections to the database, so PI and Flow Logs attribute DB sessions to the proxy's address. The original client appears only in RDS Proxy's CloudWatch metrics and in your application's audit logs. If you've recently added a proxy, re-run the trace against the proxy's ENI, not the DB's.
Can I use Performance Insights to see historical source IPs weeks later?
Only within the retention period you paid for. The free tier is 7 days of PI data; paid retention ranges from 1 month to 24 months depending on what you've configured. If a connection you need to attribute happened 10 days ago and retention is 7 days, the client address is gone. VPC Flow Logs to S3 with a lifecycle rule are the durable archive β that's the reason many teams keep Flow Logs even after they've solved the current incident.
Is there an AWS service that shows a full active connection table for RDS?
Not in the RDS console. Amazon RDS doesn't expose a pg_stat_activity-style connection table to the API, though you can query the engine's own views from a SQL client with a privileged user β pg_stat_activity on PostgreSQL, SHOW PROCESSLIST or INFORMATION_SCHEMA.PROCESSLIST on MySQL, sys.dm_exec_sessions on SQL Server. Those views return client addresses the engine sees, which is the same peer the console records. The engine view is often the fastest route when you only need the current state.