# Usage and logs

## Usage

The project's **Usage** page shows what the project takes up and how busy it is over the last 30 days. Sizes and counts only, never content.

- Database size and storage size. Sizes are noted once a day, so the charts move in daily steps.
- API requests, by service: sign-in, data, storage.
- Emails sent and sign-ins.
- The largest tables.
- The limits that apply to the project.

What a company's plan includes of each of these, and what happens at the allowance, is on [Plans and limits](https://rezincore.com/docs/plans-and-limits.md). How each number is measured is on [Usage and metering](https://rezincore.com/docs/usage-and-metering.md).

## Logs

The project's **Activity → Record** page shows what happened in the project. Never the content of a request.

### API requests, last 24 hours

Counts by hour and by service, split into answered, refused (a `4xx` answer) and failed (a `5xx` answer). A rise in refused requests usually means a bad key, an expired token, or a policy doing its job.

### The audit record

Newest first. Each line says who did what, when, to what kind of thing, and whether it succeeded, was denied or failed. It covers:

| Kind of event | Examples |
|---|---|
| Sign-ins of your users | `auth.login`, `auth.signup`, with the method used |
| Data through the API | `api.data.select`, `api.data.insert`, `api.data.update`, `api.data.delete`: the table and how many rows, and for a change which fields |
| Files | `file.put`, `file.sign`, and reads through public and signed addresses |
| Keys | a refused key, a key that hit its limit |
| Changes made in the console | policies, structure, secrets set or revealed, webhooks, settings, users disabled |
| Tools | every use of a personal access token (`token.…`), marked command line or connector |
| Staff access | given, used, ended, expired, and emergency access |

It **never** holds the values of your rows, the contents of files, passwords, tokens, secret values or the body of an email.

The audit record cannot be edited or erased, by you or by Rezin Core. Each entry is chained to the one before it, and the chain is checked every hour.

### From the command line

```
rezin logs -n 50
rezin logs -n 200 --json
```

An assistant on the connector reads the same with `get_logs`.

## The project's Home page

Shows the last database change, the last backup and whether it restores, and the security advisor. See [Row-level security and policies](https://rezincore.com/docs/database/row-level-security.md#the-advisor).
