> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsa.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# HYOK Troubleshooting Guide

> Diagnose and resolve common issues with the Corsa HYOK encryption service - connectivity, keys, and configuration.

## Systemd

The application runs under systemd as service `corsa-pii`:

```bash theme={null}
sudo systemctl status corsa-pii.service
sudo systemctl stop corsa-pii.service
sudo systemctl enable corsa-pii.service
```

## Logs

Use `journalctl` to view logs:

```bash theme={null}
journalctl -u corsa-pii
```

### Datadog

You can send logs to Datadog by setting two environment variables:

* `DD_API_KEY` - Your Datadog API key
* `DD_TAGS` - e.g. `env:prod`

### Log Level

Set the `LOG_LEVEL` environment variable to `debug` for more verbose logging. For the Debian package, add this to `/etc/corsa-pii/environment` and restart the `corsa-pii` systemd service.
