nginx access log

NGINX access and error logs record every request to a web server: client address, time, method, URL, status, size, referrer and user agent.

LinuxEvent and service logsParser: logs_nginx15 fieldsCollected by priority triage

What NGINX is

Event and service logs record what the operating system and its services saw: logons, process starts, service changes, errors and security events.

Forensic value

What NGINX can tell an investigator:

  • Scanning, exploitation and web shell use on internet-facing servers.
  • Client addresses and user agents for indicators.
  • The exact request that delivered an exploit, by time and URL.

What it does not prove

  • Request bodies are not logged by default, so uploads are visible but their content is not.
  • Behind a proxy or load balancer, the client address may be the proxy's.

Where it is stored

Arcsentry looks for NGINX at this location inside a collection, disk image or mounted volume:

var/log/nginx/**

What Arcsentry records

Each NGINX record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
remote_addrClient IP address
user_nameAuthenticated user name
event_timestampAccess log request timestamp
http_methodHTTP request method
urlRequested URI path
protocolRequest protocol and version
http_status_codeHTTP response status code
bytes_sentResponse body size in bytes
url_referrer_fullReferer request header
user_agentClient User-Agent header
event_timestampError log entry timestamp
log_levelError log severity level
process_pidWorker process identifier
process_thread_idWorker thread identifier
messageError message (error log only)

Time

Access log: request time with its UTC offset; error log: host-local wall time, no zone in the line. Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting NGINX with Arcsentry Collector

Arcsentry Collector gathers NGINX in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full, linux::profile::triage::server. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: linux::logs::nginx.

sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
  -o /mnt/ir -f host.arcx --password-file /mnt/ir/pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so NGINX can come from the tools you already use.

Analysing NGINX in Arcsentry

Ask in plain English, for example "show NGINX records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:

filter event_type == "logs_nginx"
sort {-timestamp}
take 100

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads NGINX records with the same tools and cites them by event ID.

Corroborate with

No single artifact settles a question on its own. Check NGINX against:

  • auditd: Parses /var/log/audit/audit.log* and correlates the SYSCALL, EXECVE, CWD, PATH and USER_* records of one audit event by its stamp (time and serial).
  • Syslog: Parses Linux syslog and auth.log files.
  • Bash history: Parses shell and interactive interpreter command history files (bash, zsh, fish, ash and other shells, Python, Node.js, irb and database shell clients such as psql, MySQL and Redis).

Frequently asked

How do you find a web shell in nginx logs?

Look for a POST to an upload handler followed by GET requests to a new script file, often from a different address, and match their times to process records.

Does Arcsentry parse NGINX?

Yes. Arcsentry's NGINX parser (logs_nginx) reads it from Linux evidence and records 15 fields per record, with provenance back to the source file.

How do I collect NGINX?

Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse NGINX on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial