# Introducing Elephantshark, a tool to monitor Postgres network traffic

DevFeed: [Introducing Elephantshark, a tool to monitor Postgres network traffic](<https://devfeed.tech/articles/introducing-elephantshark-a-tool-to-monitor-postgres-network-traffic-5240.md>)

Original publisher: [Read original article](<https://neon.com/blog/elephantshark-monitor-postgres-network-traffic>)

Author: George MacKerron

Published: 2025-09-24T16:33:15Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Databases](<https://devfeed.tech/topics/databases.md>), [Logging](<https://devfeed.tech/topics/logging.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [drivers](<https://devfeed.tech/tags/drivers.md>), [github](<https://devfeed.tech/tags/github.md>), [logging](<https://devfeed.tech/tags/logging.md>), [logs](<https://devfeed.tech/tags/logs.md>), [monitor](<https://devfeed.tech/tags/monitor.md>), [network](<https://devfeed.tech/tags/network.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [ssl](<https://devfeed.tech/tags/ssl.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [tls](<https://devfeed.tech/tags/tls.md>), [tool](<https://devfeed.tech/tags/tool.md>)

## AI overview

Elephantshark is an open-source Ruby script from Neon for monitoring, understanding, and troubleshooting Postgres network traffic. It sits between communicating parties, forwards Postgres-protocol messages, parses and logs them, and can decrypt and re-encrypt SSL/TLS connections so traffic can be inspected or captured for Wireshark.

## Source excerpt

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 messa...