Skip to content

Logs

The Log Browser lets administrators inspect all important system logs directly from the panel — no SSH access required. Two more tabs on the same page configure log retention and log forwarding to a SIEM.

Requirements

  • Admin access to the WebPanel
  • NetCell Agent active on the target server

Access

Menu → SECURITY → Logs — the page has three tabs: Browser, Log Retention and Log Forwarding.

Tab: Browser

Supported Log Sources

Web Server

Name Source
Nginx – Access /var/log/nginx/access.log
Nginx – Errors /var/log/nginx/error.log
Nginx – ModSecurity (only when the WAF is active) /var/log/nginx/modsec_audit.log

System

Name Source
System Log /var/log/syslog
Authentication /var/log/auth.log

Mail

Name Source
Mail (Postfix) journald – postfix@-.service
Dovecot journald – dovecot.service
rspamd journald – rspamd.service
SOGo (webmail & groupware) /var/log/sogo/sogo.log
Roundcube (legacy installations only) /var/log/roundcube/errors.log

Security

Name Source
Fail2ban journald – fail2ban.service

Panel

Name Source
ProFTPD journald – proftpd.service
WebPanel journald – enconf-webpanel.service

Filters & Options

Option Description
Server Multi-server only: select the target server
Log Type Select source from the grouped dropdown
Lines Number of recent lines to retrieve (1–2000, default: 200)
Filter Free-text search (case-insensitive)
Level Filter by severity: Error / Warning / Info / Debug

Level Detection

Severity levels are automatically detected from the log line content:

Level Colour Detection patterns
Error Red error, crit, emerg, alert, [error]
Warning Yellow warn, [warn]
Debug Grey debug, [debug]
Info White everything else

Live Mode

The Live Mode toggle (top right) refreshes the log view automatically every 30 seconds. Ideal for real-time monitoring of ongoing operations.

Download

The Download button saves all currently displayed (and filtered) entries as a .log file to your browser.

Multi-Server

When multiple servers are registered, a server selector appears above the filter bar. Logs are always fetched from the selected server.

Tab: Log Retention

Controls how many days the most important logs are kept before rotation deletes them. Values are pushed fleet-wide to every active server and apply per subsystem — there is no single global value.

Server logs

Field Default Covers
Nginx 14 days Access and error log
Syslog 28 days syslog + auth/kern/user/cron and Postfix/Dovecot — all share one rsyslog logrotate stanza
FTP 30 days ProFTPD (patches Debian 13's bundled proftpd-core logrotate conffile in place instead of adding a second, colliding stanza)
journald 30 days Every service running under journald (Postfix, Dovecot, rspamd, fail2ban, the panel agent itself)

Days, not rotation count

Debian 13 rotates some of these logs weekly instead of daily (e.g. rsyslog). An entered day value is converted internally to the matching rotation count, rounded up (ceil(days/interval)) — a wrongly assumed interval could otherwise have multiplied the retention sevenfold.

Panel-internal retention

Two more values do not affect server logs at all — they apply only to the panel's own database. There is no agent push for these; a dedicated periodic worker cleans up on a 24-hour cycle:

Field Default Description
Audit Log 90 days Entries in the panel audit log
Notifications 30 days Read in-app notifications

Unread notifications are kept

An unread notification is never deleted automatically, regardless of age — so a critical alert can't silently disappear unseen.

Per-server rollout

On save, the four server-side values are pushed to every active server; the panel shows per server whether the push succeeded. A server added later receives the current configuration automatically during onboarding, and a controller restart re-applies it to all servers.

Tab: Log Forwarding (SIEM)

Ship the security-relevant logs of every server to a central collector (a SIEM or log server) over TLS. Off-host logging is a compliance cornerstone: a host that is compromised later can no longer erase the evidence it already shipped.

The configuration is fleet-wide — it is pushed to every active server and re-applied automatically at controller start, so it survives reboots and reaches servers that were briefly unreachable.

TLS is mandatory

There is no plaintext option. When you enable forwarding you must provide:

  • a collector host and port (default 6514, syslog-over-TLS / RFC 5425), and
  • the CA certificate (PEM) that signs the collector's certificate.

The agent configures rsyslog with the GnuTLS network driver and verifies the collector's certificate against your CA (x509/certvalid). If you also set a Permitted peer, the collector's certificate name (CN/SAN) must match it exactly (x509/name, name pinning).

The forwarding action uses an on-disk spool (queue.saveonshutdown, maxdiskspace=256m, infinite resume-retry), so a brief collector outage or a burst never drops messages.

Sources

All security-relevant sources are on by default. You can narrow the set:

Source What it forwards
Auth / SSH auth, authpriv — sshd, sudo, PAM (logins, privilege use)
Nginx /var/log/nginx/access.log + error.log (via imfile)
Mail Postfix + Dovecot (mail facility)
fail2ban Ban/unban events
Panel audit The enconf-* services' journal (API + agent)
Journal Everything else the journal carries (daemon, cron, kernel)

When Journal is on, everything is forwarded in one action (auth, mail, fail2ban-via-journal and the panel services are already included), and the per-facility filters are omitted to avoid shipping a message twice. Turn Journal off to forward only the individually selected facilities.

Applying & status

Saving validates the whole rsyslog configuration (rsyslogd -N1) on each server before restarting rsyslog and rolls back the drop-in if validation fails — so a bad value can never leave rsyslog unable to start. The per-server distribution panel shows, for each active server, whether the config was applied or why it failed (e.g. an unreachable agent).

Test connection performs a live TLS probe from every server to the collector — it opens the connection, verifies the certificate against your CA and (if set) the permitted-peer name, and reports the collector's certificate CN. Use it to confirm the collector is reachable and trusted before saving, instead of letting rsyslog silently spool undeliverable messages.

A server added later automatically receives the current forwarding config as part of its onboarding, so a new node starts shipping its logs immediately (no controller restart required).

The agent installs rsyslog + rsyslog-gnutls on demand (Debian 13 ships journald-only by default).

Files written on the server

Path Contents
/etc/rsyslog.d/00-enconf-forward.conf The forwarding ruleset + source routing
/etc/rsyslog.d/enconf-forward-ca.pem Your collector CA bundle (root-only)

Disabling forwarding removes both files and restarts rsyslog.

Per-website logs (retention)

The logs under /var/www/customers/<user>/logs (<domain>.access.log, <domain>.error.log, php_errors.log, php_slow.log) are rotated by the agent via /etc/logrotate.d/enconf-site-logs. The file is fully re-rendered on every agent start and on every change (logs dirs on disk plus the customer's stored choice in /var/lib/enconf/site-log-retention.json), so existing installs get the 90-day rule without a manual step.

  • Default and maximum: 90 days. The customer picks 7/14/30/60/90 days per website; the API and the agent reject everything else. Admins can set the value per website via PUT /api/v1/admin/sites/:id/log-retention.
  • copytruncate instead of a reopen signal: nginx and PHP-FPM keep writing to the same file, owner and mode are preserved, fail2ban keeps its file handle. An already huge log is copied to .1 and emptied on the first run; lines written between the copy and the truncate can be lost.
  • Rotated files are named .1, .2.gz … (the log viewer reads exactly this scheme).
  • Traffic statistics: the counter drops at rotation; the traffic worker already treats a falling counter as a restart (hourly polling), so at most the traffic between the last poll and the rotation is missing.
  • The agent validates the file with logrotate -d before keeping it and rolls back on failure.
  • The choice is kept in the panel database and in /var/lib/enconf/site-log-retention.json on the server. A server without that file (new or restored) rotates every site with 90 days until the customer saves the setting again. A corrupt state file is never overwritten and never pruned; rotation then runs with the 90-day default.
  • logrotate runs as root in a directory the customer owns. Measured: a customer-planted symlink (evil.log, *.log.1) is not followed, the root-owned target stays unchanged; logrotate only reports an error for that file.