Introducing Elephantshark, a tool to monitor Postgres network traffic - Neon
25-Sep-2025 1066
Elephantshark helps you monitor, understand and troubleshoot Postgres network traffic: that’s Postgres servers, clients, drivers and ORMs talking to Postgres servers, proxies and poolers.
Elephantshark sits between the two parties in a Postgres-protocol exchange, forwarding messages in both directions while parsing and logging them. It is an open-source Ruby script published by Neon and works with any and all Postgres-protocol network traffic. That includes, but isn’t limited to, traffic to and from Neon databases.
https://github.com/neondatabase-labs/elephantshark
Why not just use Wireshark?
Ordinarily Wireshark is great for this kind of thing, but using Wireshark is difficult if a connection is SSL/TLS-encrypted. SSLKEYLOGFILE support was recently merged into libpq, but it won’t be available in a release version for some time. Plus, not all Postgres connections are made with libpq.
Introducing Elephantshark, a tool to monitor Postgres network traffic - Neon #ruby #rubydeveloper #rubyonrails #Introducing #Elephantshark, #monitor #Postgres #network #traffic https://rubyonrails.ba/link/introducing-elephantshark-a-tool-to-monitor-postgres-network-traffic-neon