Sending logs
There are two steps: tell EasyLog which host sends which log type, then forward the logs.
1. Register the source
In the web UI, open Sources (/sources) and add the sending host's IP address with its log type, any of the types listed under Supported log types. EasyLog routes incoming syslog by source IP — traffic from unregistered hosts is dropped.
2. Forward the logs
Point the host's log file at EasyLog's syslog port with rsyslog's imfile module. Polling mode is recommended for reliability inside containers.
/etc/rsyslog.d/60-easylog.conf on the web server:
module(load="imfile" mode="polling" pollingInterval="2")
input(type="imfile"
File="/var/log/apache2/access.log" # nginx: /var/log/nginx/access.log
Tag="apache"
ruleset="easylog_forward")
ruleset(name="easylog_forward") {
action(type="omfwd" target="EASYLOG_IP" port="514"
protocol="udp" template="RSYSLOG_ForwardFormat")
}
Enable JSON access logs in traefik.yml:
…then forward /var/log/traefik/access.log with the same imfile config as above, using Tag="traefik".
Enable the JSON access log for a site in your Caddyfile:
…then forward /var/log/caddy/access.log with the same imfile config as above, using Tag="caddy". Caddy's own lifecycle messages in that stream are ignored by the parser.
Set the source's type to General logs and forward the file or stream as usual — EasyLog stores each line exactly as it arrives, with no parser involved. Useful for a device EasyLog doesn't understand yet, or just to see what a host is actually sending before deciding what to do with it.
Note this is a type you choose per source: traffic from hosts you haven't registered is still ignored, and a line a typed source's parser rejects is still dropped rather than falling through to here.
On the ASA, send syslog straight to EasyLog:
EasyLog reads the connection and access-decision messages (106023, 106100, 106001, 302013–302016) and ignores the rest of the ASA's chatter.
In Device → Server Profiles → Syslog, add a profile pointing at EASYLOG_IP:514 (UDP), then attach it to a Log Forwarding profile for Traffic logs and reference that profile from your security rules. EasyLog parses TRAFFIC records; THREAT, SYSTEM and CONFIG logs are ignored.
UniFi gateways (UDM, UDM Pro/SE, UCG, UXG and the older USG) log firewall decisions only for rules that have logging turned on, so there are two settings, both in the UniFi Network application. Menu names move between Network versions; these are the current ones.
- Send syslog to EasyLog. In Settings → CyberSecure → Traffic Logging, enable Activity Logging (Syslog), choose SIEM Server, and enter
EASYLOG_IPand port514. (Older versions: Settings → System → Advanced → Remote Syslog Server.) - Log the rules you care about. Edit each firewall rule or policy you want to see and turn on Syslog Logging. The built-in "block all" rules at the end of each chain are the usual place to start: they show what was dropped from the internet.
Register the gateway's address as a source of type UniFi Gateway. Each logged packet becomes one event: its verdict (accept, or drop / reject / block), the rule — by the name typed in UniFi when the firmware includes it, otherwise by chain and number such as WAN_IN-2000 — and the chain it sits in (WAN_IN for traffic passing through the gateway, WAN_LOCAL for traffic aimed at the gateway itself). Both the newer [WAN_LOCAL-D-…] and older [WAN_IN-2000-D] log prefixes are read, IPv4 and IPv6 alike. The gateway's other messages (DHCP, system) are counted as unparsed and not stored.
EasyWAF ships its event log itself: point syslog_host / syslog_port in its config.toml at EasyLog, register the appliance as a source of type EasyWAF, and every proxied request arrives as one line carrying its verdict, score and the rules that fired.
Delivery is deliberately fire-and-forget — EasyWAF drops lines rather than blocking its own request path — so treat the counts as what arrived, not as a guaranteed tally of every request served. Several appliances can send to one EasyLog; each event keeps the address it came from, which is what the per-appliance table is built on.
Forward the server's whole syslog stream — EasyLog keeps every line, so there is nothing to filter on the sending side. Register the server as a source of type Linux, then on the server create /etc/rsyslog.d/90-easylog.conf:
…and sudo systemctl restart rsyslog. On a journald-only system, install rsyslog first (it reads the journal), or set ForwardToSyslog=yes in /etc/systemd/journald.conf.
Every line is stored with its program and PID. SSH logins (accepted, failed, invalid user, dropped before authentication), sudo and su (including refusals), PAM authentication failures for other services, and account changes (useradd, usermod, passwd, …) are also read into structured fields for the dashboard. Both the classic BSD syslog header and RFC 5424 work.
A central rsyslog relay forwarding many servers from one address works too: the dashboard groups by the hostname each server put in its syslog header.
Apply and restart:
Log format & reverse proxies
EasyLog parses both Common and Combined access-log formats — Nginx's default combined and Apache's combined/common all work out of the box. If a host sits behind a reverse proxy, configure it to log the real client IP (e.g. mod_remoteip / X-Forwarded-For) so the dashboards show visitors rather than the proxy.