# One log per realm

> Your realm's security events are marked, kept and read as your realm's alone; an administrator of a realm above yours can read it too.

Each realm sees only its own devices. Your realm's alerts, inventory and file-integrity state are marked as your
realm's by the realm itself, kept apart from every other realm's, and read only with your realm's own sign-in. Your
realm can't read or change another realm's, and no other realm can read or change yours, except an administrator of
a realm above yours.

## Before you begin

- **Who:** nothing to set; it's how every realm's log works.
- **Where:** nothing to do; the realm you call decides whose log you see.

## How it works

- **Ready with the realm.** A new realm has its own security log from the moment it's created, and loses it when the
  realm is deleted.
- **Marked by the realm, not the device.** Everything a device sends is marked with the realm it enrolled into,
  whatever the device itself claims.
- **Kept apart.** Your realm's events are stored as your realm's, and a search in your realm reads nothing else.
- **Read with your own sign-in.** Only your realm's administrators can read it, with their own session, and signing
  out ends their access.

### Realms above yours

An administrator whose authority covers your realm (one holding `RealmOwner` or `RealmViewer` on a realm above it,
see [Sub-realms](../../../platform/realms/sub-realms/)) reaches your log too. They see your realm's devices and alerts, and can act on them as your own administrators can:
respond, change the shared configuration, restart or remove sensors. Each call answers for one realm: a parent's own
log shows the parent's devices, not its sub-realms'.

## Set it up

Nothing. It's how every realm's log works.

## Limits and defaults

| Limit | Value |
|---|---|
| Realms one call answers for | One |
| Who reads a realm's log | Its administrators, and administrators of realms above it |

## Good to know

- **Read it through the API.** Use the [security events](../events/) API.
- **Signed out, shut out.** A session that ends loses its access to the log at once.

## Audit record

None of its own: it's how the log is held, not an action.

## Related

- [Security events](../events/): reading your realm's log.
- [Device event delivery](../event-delivery/): the path in.
- [Delegated administration](../../../platform/realms/delegated-administration/): who administers which realm.
