# Device event delivery

> The sensor's events carried over the device's one connection to the realm, so no sensor port is open anywhere and no sensor key sits on the device.

The security sensor on a device never talks to the network. Its events travel inside the device's one connection to
your realm, and are protected there with a key the device never holds. There's no sensor port on the device, no
sensor port on the internet, and no sensor key on the device to steal.

## Before you begin

- **Who:** nothing to set; every enrolled device delivers its events this way.
- **Where:** nowhere of its own: the device's connection comes from
  [Device enrollment](../../../endpoint-management/enrollment/device-enrollment/).

## How it works

The device client carries the sensor's events over the device's own connection (HTTP/2 over mutual TLS, RFC 9113
and RFC 8446), and the realm admits them only from a device in good standing, marked as your realm's. The realm's
[group configuration](../../sensors/group-configuration/) and any [active response](../../response/active-response/)
come back down the same connection.

## Set it up

Nothing on the device.

## Limits and defaults

| Limit | Value |
|---|---|
| Connections per device | One, shared with everything else the device client carries |
| Ports opened for the sensor | None |

## Good to know

- **Gaps are covered.** While the device is offline, its events wait on the device and are sent when it's back. A
  long outage with heavy activity can fill the space they wait in, and events after that are lost. Once the device is
  back, its **Stats** show what's waiting and what was dropped (see [Device view](../device-view/)).
- **One identity.** The connection is admitted by the device's certificate; a revoked device is refused (see
  [Device revocation](../../../endpoint-management/revoke-and-remove/revocation/)), and its open connection is cut at
  once.
- **No sensor secret on the device.** See [Sensor registration](../../sensors/registration/).

## Troubleshooting

| Symptom | Cause | Fix |
|---|---|---|
| A device's alerts stop | The device is offline, revoked, or its device client stopped | Check the device in [Health and actions](../../../endpoint-management/devices/health-and-actions/) |
| A device's **Stats** show drops | More events than it could send while offline | Expected after a long outage: what was already waiting is sent, what came after the space filled is lost |

## Audit record

Delivery writes no audit record.

## Related

- [Device client](../../../endpoint-management/enrollment/device-client/): the one connection, and what else it carries.
- [One log per realm](../realm-isolation/): where the events are kept.
