C
CIFP

Access Logs

Query and filter request logs from your proxy.

Every request proxied through CIFP produces an access log entry. Logs are stored in the control plane database and queryable via the API or the dashboard.

Log Fields

FieldDescription
timestampWhen the request was received (ISO-8601)
methodHTTP method: GET, POST, etc.
urlFull request URL (query params redacted for sensitive paths)
srcIpSource IP of the connecting client
statusCodeHTTP status returned by the upstream
bytesTransferredResponse body bytes forwarded to the client
durationRound-trip time in milliseconds
actionallow, deny, or hitl
ruleMatchedName of the firewall rule that matched (if any)
metadata.userAgentUser-Agent header (if present)
metadata.secretsUsedList of secret names injected (placeholder names, not values)

Querying Logs

bash
# Most recent 100 logs
curl "https://cifp.vril.dev/api/proxies/proxy-id/logs" \
  -H "Authorization: Bearer cifp_your_api_key"

# Last 50 denied requests
curl "https://cifp.vril.dev/api/proxies/proxy-id/logs?action=deny&limit=50" \
  -H "Authorization: Bearer cifp_your_api_key"

# Filter by URL substring
curl "https://cifp.vril.dev/api/proxies/proxy-id/logs?q=openai.com" \
  -H "Authorization: Bearer cifp_your_api_key"

# Filter by time range (ISO-8601)
curl "https://cifp.vril.dev/api/proxies/proxy-id/logs?from=2026-06-01T00:00:00Z&to=2026-06-07T00:00:00Z" \
  -H "Authorization: Bearer cifp_your_api_key"

# Filter by status code
curl "https://cifp.vril.dev/api/proxies/proxy-id/logs?status=403" \
  -H "Authorization: Bearer cifp_your_api_key"

Query Parameters

ParameterDescriptionDefault
limitNumber of logs to return (max 500)100
actionFilter by action: allow, deny, hitl
statusFilter by HTTP status code
qSubstring match on URL
fromStart of time range (ISO-8601)
toEnd of time range (ISO-8601)now

Retention

Access logs are retained for 90 days by default. Older logs are purged automatically. For longer retention, export logs to your own storage using the API.

Real-Time Events

Subscribe to per-proxy SSE events for real-time log streaming:

bash
curl -N "https://cifp.vril.dev/api/proxies/proxy-id/events" \
  -H "Authorization: Bearer cifp_your_api_key"

# Server-sent events:
# event: connected
# event: heartbeat
# event: proxy.update