Why the destination survives a migration
asia-southeast2, AWS ap-southeast-3, or Azure Indonesia Central, that string is copied byte for byte. The agent starts, reads the same endpoint, and connects to the same place.
Cloud-native agents can behave in a less obvious way. Some take the target region from instance metadata, while others carry a region value that was written explicitly during the original setup in Singapore. If the old value was hard-coded, the agent in Jakarta keeps writing into the Singapore logging service, and it works without any error. Nothing in the agent's logs looks wrong, because from its point of view nothing is wrong.
The same applies to containers. An OTEL_EXPORTER_OTLP_ENDPOINT variable, the standard OpenTelemetry setting for where traces and metrics go, lives in the deployment manifest. Redeploying the manifest into a new cluster keeps the old endpoint.
How a log line travels from your app to an overseas endpoint
- The application writes a line to stdout or to a log file. On systemd hosts, stdout goes to journald. In Kubernetes, the container runtime writes it to a file under
/var/log/containers/or/var/log/pods/. - The agent watches the file, usually through inotify, a kernel interface that tells a process when a file changes. It reads the new bytes and records how far it has read in a position or checkpoint file, so a restart does not resend everything.
- The agent parses the line and enriches it with hostname, pod name, labels, and sometimes cloud metadata. The record now carries more context than the application wrote.
- Records go into an in-memory batch. Many agents can also spill batches to an on-disk buffer when the destination is slow or unreachable. That buffer is a local copy of the data waiting to leave.
- When a batch is full or a flush timer fires, the agent resolves the endpoint hostname through DNS, opens a TCP connection, performs a TLS handshake that includes the hostname in the SNI field (Server Name Indication, the hostname the client asks for during the handshake), and sends the compressed batch over HTTP or gRPC.
- The connection is usually kept open and reused. DNS is looked up again only when the connection drops or the cached answer expires.
What personal data rides along
?phone= parameter goes out intact. Error trackers can attach request headers, cookies, form bodies, and the logged-in user's email. Application logs contain whatever a developer printed while debugging and never removed.
In support work, this is usually the part that surprises people. The database is in Jakarta and encrypted, but its contents appear piece by piece in an overseas trace store with a different retention period and a different access list.
Finding every export path on a host
BASH
# Established TCP connections with process names (needs root to see all processes)
sudo ss -tnp state established
# Watch DNS queries leaving the host for a while; long-lived connections may not re-resolve
sudo tcpdump -ni any -l 'udp port 53 or tcp port 53'
# Show the hostname requested in each TLS handshake (SNI), if tshark is installed
sudo tshark -i any -Y 'tls.handshake.type == 1' -T fields -e ip.dst -e tls.handshake.extensions_server_namess output gives you a process name and a remote IP for every connection. Agents usually stand out by name. The SNI capture turns IPs into vendor hostnames, which often contain a region hint. Restarting an agent during the capture forces a fresh DNS lookup and handshake, but do that only where a restart is acceptable. If an SDK uses DNS-over-HTTPS or Encrypted Client Hello, these captures can miss the hostname, so treat an empty result as "not seen" rather than "not happening".
Next, match connections to configuration. Paths differ by agent, package, and distro, so adjust the directories to what is installed:
BASH
# Read-only search for destination settings in common agent config locations
sudo grep -rEn 'endpoint|host|url|site|region' /etc/otelcol* /etc/fluent-bit /etc/td-agent-bit 2>/dev/null
# OpenTelemetry and vendor variables set for running processes
sudo grep -az 'OTEL_EXPORTER_OTLP' /proc/*/environ 2>/dev/null | tr '\0' '
' | sort -uBASH
kubectl get daemonsets -A
kubectl get deployments -A -o yaml | grep -En 'OTEL_|ENDPOINT|_SITE|_HOST'Paths that never touch your servers
Redirecting and proving it
ss, DNS, and SNI captures and confirm the overseas hostnames are gone. Save the before-and-after output with timestamps. Auditors ask for that evidence, as covered in Sovereign Cloud Deployed but No Data Residency Proof for Auditors? Verify Locality Step by Step. For a stronger control, add an egress rule that allows outbound traffic only to approved telemetry destinations, so a newly deployed agent with an old default fails visibly instead of quietly shipping data abroad.
The practical rule: when you move a region, treat every agent's endpoint as data that has to migrate too. Inventory the export paths from network evidence, redirect or redact each one, flush the buffers, and keep the captures that show the traffic now stays in Indonesia.