The Simplest Way to Make Elastic Observability and Tcp Proxies Work Like They Should
Teams use elastic observability and tcp proxies to track raw network traffic in real time. The proxy forwards packets between apps while the log tool collects metrics and traces. This workflow helps engineers find slow database calls and dropped sockets right away. You can see which service opened a socket and how much data moved across it. When a backend server fails, your team gets an alert with the exact network path. How elastic observability and tcp proxies share data A TCP proxy sits i
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Teams use elastic observability and tcp proxies to track raw network traffic in real time. The proxy forwards packets between apps while the log tool collects metrics and traces.
This workflow helps engineers find slow database calls and dropped sockets right away. You can see which service opened a socket and how much data moved across it. When a backend server fails, your team gets an alert with the exact network path.
How elastic observability and tcp proxies share data
A TCP proxy sits in the network path between a client app and a server. It accepts incoming socket requests and opens a new socket to the backend service. For every socket, the proxy records byte counts, duration, and source or destination addresses.
A lightweight shipper reads those proxy logs and sends them to the search cluster. The shipper uses an API key or certificate to log in to the ingest node. Once the cluster verifies the key, it writes the network events into data streams.
Permissions control who can write and read this data inside the cluster. The shipper gets a write role that only allows adding new events to one stream. Engineers log in with read roles that limit them to dashboards for their own apps.
Tls encrypts the traffic as it moves from the shipper to the central cluster. This stops outsiders from reading internal IP addresses and port numbers on the wire. Good network rules also make sure only known proxy hosts can reach the ingest port.
Common failure modes and how to fix them
Many teams use one shared service account for all log shippers across every server. If an attacker steals that one key, they can send fake logs from anywhere. Give each host group its own key and limit where it can write.
Broad read tokens are another big risk in large clusters. When every developer can read all proxy logs, they might see sensitive metadata. Scope read roles by team so people only see traffic for services they own.
AI Observability + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged database queries also create blind spots during an incident or audit. A standard TCP proxy only sees raw bytes and IP addresses at layer four. It does not parse the payload or show which user ran a specific query.
High traffic spikes can fill up local disks if proxy logs grow too fast. Set clear drop rules for health checks so noise does not flood your storage. Keep only the fields you need, like timestamps, error codes, latency, and host names.
Scoping network paths and hiding sensitive fields
Lock down network paths between your proxies, your shippers, and your central search cluster. Put your proxies in private subnets and block direct public traffic to backend ports. Use firewall rules so shippers can only talk to the cluster on the ingest port.
Sometimes error logs or custom headers leak private user details into your data streams. You can set up ingest pipelines to check text fields before saving them to disk. Data masking rewrites matched fields in results, such as emails, phone numbers, or card numbers.
Rotate your shipper keys on a regular schedule to reduce risk from leaked secrets. Remove old keys right away when you shut down a server or replace a node. Check your cluster audit logs each week to spot failed login attempts from unknown hosts.
Test your alert rules often to make sure your team catches real network drops. Good alerts focus on sudden jumps in failed sockets or high connection times. This setup keeps your network data clean, safe, and useful during a major outage.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
What data do TCP proxies send to the log cluster?
They send socket start times, duration, bytes sent, bytes received, and client or server IPs. They also record error flags when a backend server resets or drops a connection.
How do I stop health check logs from filling my storage?
Filter out traffic from load balancer IPs at the proxy or inside the log shipper. Dropping routine health checks saves disk space and keeps your dashboards focused on real traffic.
Can a basic TCP proxy log which user ran a database query?
No, a standard layer four proxy only sees network packets and IP addresses. To tie queries to individual users, you need a tool that understands the database protocol.
Related guides
In this post