---
title: Core concepts
description: How workspaces, projects, services, environments and data regions fit together in ZevSight.
url: https://docs.zevsight.com/concepts
---

# Core concepts

> How workspaces, projects, services, environments and data regions fit together in ZevSight.

```text
workspace                      billing, members, teams, API keys, status pages
└── project                    data region and retention
    ├── environments           production, staging, development, …
    └── services               api, worker, checkout, …
        └── service environment   "api · production": what you monitor
```

## Workspace

The workspace is your organization in ZevSight. It holds members and their roles, teams, the plan and billing, alert channels and escalation policies, API keys, and status pages. You can belong to several workspaces and switch between them in the top bar. The API and some error messages call it an *organization*.

## Project

A project is a product or system, such as `shop` or `internal-tools`. It sets two things that apply to all of its data:

- **Data region.** Where its telemetry is stored. You choose it when you create the project and cannot change it later.
- **Retention.** How long its events are kept. It can be up to the longest your plan allows.

A new project starts with three environments: `production`, `staging` and `development`. On the wire a project has a public id such as `prj_8KdT3mQ2wXr7nB4cVhY9p`.

## Service and environment

A **service** is one deployable thing: `api`, `worker`, `checkout`. An **environment** is where it runs. You monitor a service in an environment, the **service environment**, shown as `api · production`. Logs, checks, heartbeats, alert rules and ingest tokens are all scoped to service environments. Nothing is scoped to just a project.

- Service names are slugs: lowercase letters, digits, `.`, `_` and `-`, up to 64 characters, starting with a letter or digit. A service can also have a display name.
- Environment names use the same characters, up to 64.
- A service environment is **active** once it has sent data or has a check, heartbeat or ingest token. Until then the dashboard offers **Set up**.
- Services and environments are created automatically from the events you send, up to your plan's limits. Past a limit, events are stored under `unknown` and the original name is kept in `zs.original_service` or `zs.original_environment`. Nothing is dropped.

### How an event gets its service and environment

1. The event's own `service` and `environment` fields. Over OTLP these come from the `service.name` and `deployment.environment.name` (or `deployment.environment`) resource attributes.
2. If a field is missing and the ingest token is limited to one service or environment, that value is filled in.
3. Otherwise the service is `unknown` and the environment is `production`.

Names are turned into slugs: `Checkout Service` becomes `checkout-service`. A token limited to some service environments refuses events for others.

## Data region

Each data region has its own ingest and query hosts. Today the only region is the EU, hosted in Germany (Falkenstein):

| Purpose | Host |
|---|---|
| Ingest and heartbeat pings | `https://ingest.zevsight.com` |
| Search, live tail, check data, alerts | `https://eu.zevsight.com` |

Telemetry never leaves its region. A credential used against another region's host gets `421 WRONG_REGION`, and the response's `endpoint` field names the right host. See [Data and retention](/workspace/data-and-retention).

## Event

Every log line, heartbeat ping and check result is an event with the same envelope: `id` (UUIDv7), `ts`, `received_at`, `project`, `service`, `environment`, `type`, `severity`, `trace_id`, `span_id`, `attrs`, `resource` and `body`. See [HTTP ingest API](/send/http-api).

## Credentials

| Credential | Prefix | Can |
|---|---|---|
| Ingest token | `zsi_` | Write events to one project, optionally limited to service environments |
| API key | `zsr_` | Read (search, tail, check data, alerts), or also respond (acknowledge, resolve, snooze, add notes) |
| Heartbeat ping URL | `hb_` token in the URL | Record pings for one heartbeat monitor |

See [API keys and ingest tokens](/workspace/api-keys).
