Перейти к содержимому

Logs, SIEM & alerts

OkYouIn records every access decision and every administrative change, keeps them in the console for as long as you choose, and can stream them to your syslog collector or SIEM. Alerts tell you when something needs attention — a certificate about to expire, a background job failing, a cluster node down.

Logging ▸ Access log is the one place to answer who got in where, and why not: the access decisions of RADIUS, Windows sign-in and single sign-on (OIDC, SAML and the Verify API) in one feed, newest first.

Each row shows the time, the type (RADIUS, Windows, SSO), the application, the user, the client address, the country (from GeoIP), the result (Allowed, Denied, MFA) and the reason. Open a row for the full decision, with links to the detailed journal entry and the application. When the user approved a push or an e-mail link, the entry also shows the approval device: its IP address, country and the checks it passed or failed.

Filter by user, client address, time range and country, among others; filters you use often can be saved as presets.

LogMenuWhat it records
RADIUS logLogging ▸ Application log ▸ RADIUS logevery Access-Request answered or dropped, with the decision and its trace
RADIUS sessionsLogging ▸ Application log ▸ RADIUS sessionssessions from RADIUS accounting
Windows sign-in logLogging ▸ Application log ▸ Windows sign-in logevery Windows logon agent decision
SSO sign-in logLogging ▸ Application log ▸ SSO sign-in logevery OIDC, SAML and Verify API sign-in, MFA step and sign-out
SSO sessionsLogging ▸ Application log ▸ SSO sessionsopen single sign-on sessions, which you can revoke
Audit logLogging ▸ Audit logwho changed what in the console, the API or on the server’s command line
Blocked IPsLogging ▸ Blocked IPsaddresses blocked automatically or by hand

How long each log is kept is set on Settings ▸ System ▸ Log rotation (0 keeps for ever).

The containers’ own logs, for troubleshooting, are read on the server:

Terminal window
./okyouin logs -f api # follow one service
./okyouin logs --tail 100 radius # the last 100 lines
./okyouin logs --since 1h web

Services: api, web, radius, winbind, stun, postgres. Container logs are capped at 10 files of 100 MB per service.

OkYouIn forwards to any number of syslog destinations, each with its own transport, format and selection of events.

Options
ProtocolUDP, TCP, or TLS
Framing (TCP, TLS)Octet counting (RFC 6587, the default) or Newline
FormatRFC 5424 (modern IETF syslog with RFC 3339 time stamps and structured data), RFC 3164 (classic BSD syslog, understood by every collector), CEF (Common Event Format, for SIEMs that parse CEF fields, such as ArcSight or Microsoft Sentinel)
TLSverify the server certificate against your CA (or the system trust store); optional client certificate and key for mutual TLS
Ident, facility, severitythe program name to filter on, the facility, and the severity — per event by default, or forced to one value
Event typeContents
Auditevery audit event
Authenticationconsole sign-in and sign-out, lockouts, login protection, MFA enrolment and verification, push answers
Configuration changeschanges to settings, roles, groups, e-mail templates, syslog destinations, LDAP configurations and domain membership
RADIUS authenticationthe RADIUS journal: every answered or dropped Access-Request
RADIUS accountingevery Accounting-Request (start, interim, stop)
SSO sign-insevery OIDC / SAML sign-in decision, MFA step and sign-out, and every Verify API sign-in
Windows logon agentevery Windows agent sign-in decision
  1. Open Settings ▸ Integrations ▸ Syslog and click Add destination.

  2. General — a name (for example Corporate SIEM) and the event types to forward.

  3. Transport — host, port, protocol; for TLS, the CA certificate and, for mutual TLS, the client certificate and its key.

  4. Message format — the format, ident, facility and severity.

  5. Create destination, then Send test and check that the message arrives.

Each destination shows its health: messages sent, errors, the last success and the last error, and for journals when they were last delivered and how many records were lost.

Allow the outbound port to your collector (typically 514) on your firewall.

Alerts open when something needs attention and resolve by themselves when the condition clears. They are listed on Logging ▸ Alerts, where you can acknowledge them, and appear on the dashboard. Examples:

  • resource thresholds — disk, CPU, memory, swap;
  • a background job failing several runs in a row, or outgoing e-mail failing;
  • a certificate in use (console HTTPS, SAML signing) close to expiry;
  • the trial or license ending, or the active-user limit reached (Licensing & trial);
  • cluster events, on a high-availability cluster.

Configure them on Settings ▸ System ▸ Alerts:

SettingWhat it does
Alert engine enabledthe master switch for checks and notifications
Resource thresholdswarning and critical levels for disk, CPU, memory and swap (0 disables a level)
Email notifications and Recipientse-mail when an alert opens, escalates, repeats or resolves; one address per line
Minimum severityonly alerts at or above it are notified
Repeat — critical / error / warningre-notify unacknowledged alerts at this interval (0 = off)
Notify on resolvealso notify when an alert resolves
Certificate expiry warningdays before a certificate expires that a warning opens; it becomes an error at 30 days and critical at 7

E-mail needs SMTP on Settings ▸ Integrations ▸ Email.