Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions troubleshoot/ingest/opentelemetry/connectivity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
---
navigation_title: Connectivity issues
description: Troubleshoot connectivity issues between EDOT SDKs, the Collector, and Elastic.
applies_to:
stack: all
serverless: all
products:
- id: observability
- id: edot-collector
- id: edot-sdk
---

# Connectivity issues with EDOT

Connectivity problems occur when the OpenTelemetry SDK or Collector cannot reach the Elastic endpoint. Even with correct proxy settings, network restrictions such as blocked ports or firewalls can prevent data from flowing.


## Symptoms

You might see one or more of the following error messages:

- `connection refused`
- `network unreachable`
- `i/o timeout`
- `tls: handshake failure`

These errors may appear either in application logs (from the SDK) or in the Collector logs.


## Causes

Connectivity errors usually trace back to one of the following issues:

- **Firewall or port blocking**

Outbound traffic on port `443` is blocked by corporate firewalls or network policies.

- **Endpoint errors**

The endpoint is unreachable or not listening on the specified port:

- `connection refused`: endpoint not listening
- `network unreachable`: VPN, routing, or DNS failure
- `timeout`: traffic dropped by firewall, proxy, or load balancer

- **Proxy misconfiguration**

Proxy environment variables (`HTTP_PROXY`, `HTTPS_PROXY`) may be set correctly but the proxy itself lacks access to Elastic or restricts ports. Refer to [Proxy settings](opentelemetry://reference/edot-collector/config/proxy.md) for more information.


### Differentiating SDK vs Collector issues

Errors can look similar whether they come from an SDK or the Collector, but identifying the source helps you isolate the problem:

* **SDK**

Application logs report failures when the SDK cannot send data to the Collector or directly to Elastic. These often appear as `connection refused` or `timeout` messages. If seen, verify that the Collector endpoint is reachable.

* **The Collector**

Collector logs show export failures when it cannot forward data to Elastic. Look for messages like `cannot send spans` or `failed to connect to <endpoint>`. If present, confirm the Collector’s exporters configuration and network access.


## Resolution

Before you dig into SDK or Collector configuration, confirm that your environment can reach the Elastic endpoint by performing the following checks:

:::::{stepper}

::::{step} Verify DNS resolution

Make sure the hostname for your Elastic endpoint resolves correctly:

```bash
nslookup <your-endpoint>
```

::::

::::{step} Test network reachability

```bash
ping <your-endpoint>
```

::::

::::{step} Check open ports

Test whether the required OTLP ports are open (default `443` for HTTPS):

```bash
nc -vz <your-endpoint> 443
```

::::

::::{step} Verify TLS/SSL

Check that TLS certificates can be validated:

```bash
openssl s_client -connect <your-endpoint>:443
```

::::

:::::

If any of these steps fail, the issue is likely caused by network infrastructure rather than your SDK or Collector configuration.


### Next steps

If basic checks and configuration look correct but issues persist, collect more details before escalating:

* Review proxy settings. For more information, refer to [Proxy settings](opentelemetry://reference/edot-collector/config/proxy.md).

* If ports are confirmed open but errors persist, [enable debug logging in the SDK](../opentelemetry/edot-sdks/enable-debug-logging.md) or [in the Collector](../opentelemetry/edot-collector/enable-debug-logging.md) for more detail.

* Contact your network administrator with test results if you suspect firewall restrictions.
1 change: 1 addition & 0 deletions troubleshoot/ingest/opentelemetry/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ toc:
- file: edot-sdks/enable-debug-logging.md
- file: edot-sdks/proxy.md
- file: no-data-in-kibana.md
- file: connectivity.md
- file: contact-support.md
Loading