RunReveal

Nginx Syslog source

The nginx_syslog source listens on a UDP socket for nginx access logs wrapped in syslog format. It parses the nginx combined log format and extracts structured fields like IP address, request path, status code, and user agent.

Configuration

{
  "sources": {
    "nginx": {
      "type": "nginx_syslog",
      "addr": "0.0.0.0:5514"
    }
  }
}

Options

OptionTypeDefaultDescription
addrstringrequiredUDP listen address (e.g. "0.0.0.0:5514")

Nginx configuration

Configure nginx to send access logs to reveald via syslog:

http {
    access_log syslog:server=127.0.0.1:5514,facility=local7,tag=nginx combined;
}

Event fields

FieldValue
sourceType"nginx-syslog"
rawLogRaw log line as JSON
eventTimeParsed from nginx time_local field
src.ipRemote client address
actor.usernameRemote user (empty if -)
tags.requestRequest line (e.g. "GET /path HTTP/1.1")
tags.statusHTTP status code
tags.body_bytesResponse body size
tags.http_refererReferer header
tags.http_user_agentUser agent string

On this page