# Connection logs

Source: https://prontaro.com/docs/billing/logs/

Track connection metadata across all your tunnels, proxy credentials, and Relay URLs from the dashboard—new entries appear within a few seconds without ever storing request bodies or secrets.

In [Logs](https://my.prontaro.com/journal), you can filter events by tunnel, IP, or proxy credential, direction, status, method, path, and time range, and allowlist a blocked IP in one click; interactive HTTP payload inspection is not available yet. Filters combine: a record must match every filter you set, and comma-separated values within one filter match any of them.

Logs [Open in dashboard](https://my.prontaro.com/journal)

Logs are viewed in the web dashboard only — there is no `prontaro log` CLI command.

## What is logged and what is excluded

Logs record only what you need for debugging: who connected, where they connected, when it happened, and how it ended. In the dashboard, outcomes appear as plain-language statuses (for example, “connection closed”, “prontaro CLI couldn’t reach local app”, “blocked: source not in “From””).

### What is logged

- **Outbound proxy & Relay:** protocol (`CONNECT` or `SOCKS5`, TLS flag), client IP, target `host:port`, your outbound IPv4, duration, bytes, and outcome (success, blocked by From or To rules, connection limit, etc.).
- **HTTPS tunnel visitors:** visitor IP, HTTP method, URL path without query string, HTTP status code, request and response bytes, duration, and outcome.
- **TCP tunnel visitors:** visitor IP, duration, bytes, and outcome (long-lived TCP connections appear once closed).
- **`prontaro CLI` sessions:** connect, disconnect, reconnect, and refusal events with machine name, CLI version, OS, and source IP.
- **Sampled refusals:** rejections by Prontaro servers (access rule, password, quota, or stopped tunnel) — up to 20 detailed entries per minute per tunnel (max 3 per IP), plus per-minute counts for the top 20 sources.
- **Account changes:** plan, access-rule, tunnel, IP, and credential changes shown on the same timeline alongside connections.

> **Closed TCP ports and IP allowlists**
>
> When an unauthorized IP tries to connect to a closed TCP tunnel or a port with an IP allowlist, the kernel filter on the Prontaro server drops the SYN packet before accepting the connection. Those dropped packets never enter Logs. Proxy attempts with an invalid login or password are not logged there either.

### What is never logged

- HTTP request or response bodies
- URL query strings (`?token=...`, `?api_key=...` are stripped before recording)
- HTTP headers — including `Authorization`, `Cookie`, and custom API keys
- Tunnel passwords, proxy credentials, or CLI tokens
- Direct TCP stream payloads (TLS traffic, SSH sessions, SQL queries, database data)

## Allowing a blocked address directly from Logs

When an access rule blocks a legitimate partner, CI runner, or teammate, you can allow it straight from the refusal entry in the dashboard or via the CLI:

#### In the dashboard

1. Open **Logs** in [my.prontaro.com](https://my.prontaro.com/journal) and filter by access refusals (or search for the IP or object name).
2. Click the blocked entry for the tunnel or proxy credentials.
3. In the entry details, click **Add … to “From”** or **Add … to “To”** (or click **Open “Access” →**). The address is already filled in — verify it and click **Save**.

Logs [Open in dashboard](https://my.prontaro.com/journal)

#### In the terminal (CLI)

```bash
# Allow a blocked visitor IP on an HTTPS or TCP tunnel
prontaro access pg-prod allow 198.51.100.7
```

Outbound proxy and Relay access rules are edited directly from the refusal entry in [Logs](https://my.prontaro.com/journal) or in the **Access** tab under [IP addresses](https://my.prontaro.com/ips).

> **SOCKS5: “The target is an IP address, but the ‘To’ list only allows domain names”**
>
> If an outbound SOCKS5 log entry shows this message, your client resolved DNS locally and sent a bare IP while your **To** list uses domain names. Switch the client URL from `socks5://` to `socks5h://` so DNS resolves on the Prontaro server.

## Retention and daily detail caps

| Plan | Retention | Detailed events per day |
| --- | --- | --- |
| **Free** | 1 day | 50,000 |
| **Tunnels** | 3 days | 200,000 |
| **Dedicated** | 7 days | 1,000,000 |
| **Pro** | 30 days | 2,000,000 |

Across all plans, a per-minute cap of 100,000 detailed events per minute applies per credential set or tunnel.

- **Daily counters reset at `00:00 UTC`** and are totaled across all Prontaro servers serving your subscription.
- **Shorter retention after a downgrade** hides records older than the new window immediately, and expired records cannot be restored.
- **Your active retention window** is always shown in the **Logs** header, along with how long new records take to appear.

## Daily caps and summary mode

Hitting a per-minute or daily detailed log cap never stops or slows down your traffic:

1. Prontaro servers stop writing individual event rows for the subscription and emit per-minute summary rows instead (timestamp, total events, detailed count, and outcome breakdown).
2. The dashboard shows a notice with the exact UTC time detailed logging stopped (`00:00 UTC` resets the counter automatically).
3. **Instant resume on upgrade:** upgrading mid-day restores detailed logging within seconds — no waiting until midnight UTC.

If a Prontaro server temporarily loses connectivity to log storage, it buffers records locally and flushes them once reconnected. If an extended outage overflows the buffer, the dashboard shows an explicit gap notice (`from … to …`) instead of silently dropping events.

Byte counts inside Logs are diagnostic values; monthly traffic billing totals and [Charts](https://my.prontaro.com/charts) use separate counters and stay accurate even in summary mode.

## Next steps

- [Access control & firewalls](https://prontaro.com/docs/tunnels/access.md) — configure tunnel IP allowlists and Basic Auth passwords.
- [Usage, limits & quotas](https://prontaro.com/docs/billing/limits.md) — how traffic, HTTPS requests, and concurrent connections are counted.
- [Plans & pricing](https://prontaro.com/docs/billing/plans.md) — compare plan tiers, log retention windows, and add-on packs.
