# Report a problem

A diagnostics archive holds the logs a problem report needs, and OSMates sends crash reports only if you let it.

During the beta, report problems as [Join the beta](https://osmates.com/docs/beta) explains. Check [Fix a known problem](https://osmates.com/docs/known-issues) first.

## Collect diagnostics in the app

1. Choose **Help > Collect Diagnostics**.
2. From the **Machine** menu, choose the machine with the problem, or **None**.
3. From the **Logs from** menu, choose how far back logs go. The default is 24 hours.
4. Under **What Goes In**, turn off any part you don't want to send.
5. Leave **Hide personal details** on unless the names matter to the problem.
6. Click **Save** and choose a folder.

Collection can take a few minutes. The archive is a zip of text files, 20 MiB at most, and OSMates never sends it for you.

## Collect diagnostics in Terminal

To save the same archive in the current folder, with machine `dev` and 6 hours of logs:

```sh
osmates diagnostics dev --last 6h
```

The file is named `OSMates-Diagnostics-<date>.zip` and never replaces an existing file. To see what each part would hold without saving, add `--list`. Every option is in the [`diagnostics` reference](https://osmates.com/docs/cli/diagnostics).

## Check the archive before you send it

Open the archive and read it. Send it privately, never in a post others can read.

**Hide personal details** replaces your account, Mac, and machine names, your folders, and public addresses. Tokens and passwords are always removed. A name OSMates doesn't know, such as one a guest writes in its own log, can remain.

| Part | Contents |
|---|---|
| OSMates' logs | Logs of OSMates' processes, updates, and Virtualization errors |
| Crash and resource reports | Reports of OSMates' processes |
| Panic and memory reports | Your Mac's reports, cut down to OSMates |
| Machines | Each machine's settings, events, and the end of its console log |
| Guest logs | The guest agent's log and system events of the chosen machine, while it runs |
| Agent activity | What agents, the app, and the command line did, from the [audit trail](https://osmates.com/docs/agent-history). Off by default |

The archive never holds images, disks, memory, or TPM and NVRAM contents. It never holds clipboard or typed text, shared folder contents, keys, tokens, or passwords.

On a standard Mac account, panic and memory reports are left out. macOS lets only an administrator read them.

## Send crash reports and usage statistics

Both are off until you turn them on.

1. Choose **OSMates > Settings**, then click **Privacy**.
2. Turn on **Send crash reports**, **Send usage statistics**, or both.
3. To read what's waiting or already sent, click **Show Reports**.

Only events after you turn a switch on are reported. Turning a switch off deletes its unsent reports.

A crash report names the OSMates program that crashed and where it stopped. A usage report covers the day before:

- Your Mac's memory, and how many Linux, macOS, Windows, and FreeBSD machines it has
- Whether each Linux machine came from Debian, Ubuntu, Fedora, or another image
- How many starts, failed starts, and crashes there were

Each report adds the OSMates and macOS versions, your Mac model, and a random report ID. Reports hold no machine, file, account, or Mac names, no IP addresses, and nothing from inside a machine.

Only OSMates from osmates.com sends reports, to osmates.com, once a day. Your organization can [turn them off](https://osmates.com/docs/organization-policy#keys).
