Cloud ✓ fields verified against sample logs

AWS ALB Access Log Fields: Reference With Examples

Published

One space-separated line per request an Application Load Balancer handled: when, the client address and port, the target that served it, three timings, the load balancer's and the target's status codes, bytes in and out, the request line, the user agent, TLS details and the actions the listener rules took.

Official documentation: AWS: Access log entries for your Application Load Balancer

Sample record

https 2024-01-15T09:00:01.000000Z app/prod-alb/abc123 203.0.113.10:52001 10.0.0.10:443 0.001 0.005 0.000 200 200 800 4500 "GET https://api.corp.com/api/v1/dashboard HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/120.0.0.0" ECDHE-RSA-AES128-GCM-SHA256 TLSv1.3 arn:aws:elasticloadbalancing:us-east-1:123:targetgroup/prod/abc "Root=1-001" "api.corp.com" "-" 0 2024-01-15T09:00:01.000000Z "forward" "-" "-" "10.0.0.10:443" "200" "-" "-"

From the LogTriage parser test corpus — synthetic data, no real hosts or users.

Explain this record field by field →

Field reference

Field Type Meaning Why it matters for security
typee.g. https string AWS: "The type of request or connection" — http, https, h2, grpcs, ws or wss. Plain http on a load balancer that should redirect everything to https shows clients skipping the redirect.
timee.g. 2024-01-15T14:30:01.000000Z ISO 8601 (UTC) AWS: "The time when the load balancer generated a response to the client, in ISO 8601 format." request_creation_time is when the request arrived; the difference is the full processing time.
client:porte.g. 185.220.101.42:55001 address:port AWS: "The IP address and port of the requesting client." The real client, since the load balancer is the first hop — unlike the target's own logs, which see the load balancer's address.
target:porte.g. 10.0.0.10:443 address:port or "-" AWS: "The IP address and port of the target that processed this request." A hyphen when no target was reached. Tells you which instance or container served an attack request — the one to check for follow-up activity.
elb_status_codee.g. 403 number AWS: "The status code of the response generated by the load balancer, fixed response rule, or AWS WAF custom response code for Block actions." What the client got. 403 with target_status_code "-" means the load balancer or WAF refused it before any target saw it.
target_status_codee.g. 401 number or "-" AWS: "The status code of the response from the target." The application's own answer; 401 runs on a login path are password guessing.
target_processing_timee.g. 0.002 seconds AWS: "The total time elapsed (in seconds, with millisecond precision) from the time the load balancer sent the request to a target until the target started to send the response headers." -1 when no target responded. Slow responses to requests with injection payloads can be time-based SQL injection.
received_bytese.g. 450 number AWS: "The size of the request, in bytes, received from the client (requester)." Unusually large uploads to endpoints that normally receive little.
sent_bytese.g. 8921 number AWS: "The size of the response, in bytes, sent to the client (requester)." A large response to a scanner's request on an admin path is data leaving.
request_linee.g. GET https://api.corp.com/admin/users HTTP/1.1 string AWS: "The request line from the client, enclosed in double quotes and logged using the following format: HTTP method + protocol://host:port/uri + HTTP version." Probes and payloads are here; note the full URL includes the host and port, unlike a web server log.
user_agente.g. sqlmap/1.7 (https://sqlmap.org) string AWS: "A User-Agent string that identifies the client that originated the request, enclosed in double quotes." Tools announce themselves here; see the scanner user-agent reference.
actions_executede.g. forward string AWS: "The actions taken when processing the request, enclosed in double quotes" — such as waf, forward, redirect, fixed-response, authenticate. waf among the actions shows AWS WAF evaluated the request; compare with the WAF logs for the matching rule.
domain_namee.g. api.corp.com string AWS: "The SNI domain provided by the client during the TLS handshake, enclosed in double quotes." Scanners that connect by IP send no SNI ("-"), a quick way to separate them from real visitors.

Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.

What it records

An Application Load Balancer writes one line per request it processed, in the field order AWS lists in Access log entries for your Application Load Balancer. Unlike a web server’s log, it sees every request before any target does: the real client address, requests the load balancer or AWS WAF refused before they reached a target, both status codes, and the TLS cipher and SNI name the client used.

The malicious sample shows a scanner (sqlmap, then python-requests) reaching /admin/users with a 200 and almost 9 KB sent back, being refused on /admin/config, and a second address failing logins with 401s.

Where to get it

  • S3. Once enabled, the load balancer delivers gzip-compressed log files to the bucket you choose, under a prefix with the account, region and date.
  • Athena. AWS publishes a table definition so the files can be queried in place with SQL.
  • SIEM. Most collectors read the bucket through S3 event notifications or SQS.
# Requests per client address with a 4xx from the load balancer or target, in one day's files
aws s3 cp s3://my-alb-logs/AWSLogs/123456789012/elasticloadbalancing/us-east-1/2024/01/15/ . --recursive
zcat *.log.gz | awk '$9 ~ /^4/ {split($4, c, ":"); print c[1]}' | sort | uniq -c | sort -rn | head

Parsing pitfalls

  • Quoted fields with spaces. The request line, user agent and several later fields are quoted; split on quotes, not on every space. The awk positions above only hold for the leading unquoted fields.
  • Address with port. client:port joins the two; IPv6 clients contain colons too, so split on the last colon.
  • Hyphens and -1. A missing target gives - for target fields and -1 for its timings.
  • New fields at the end. AWS appends fields over time (classification, conn_trace_id); parse by position from the start and tolerate extra trailing fields.
  • Full URLs. The request line includes protocol://host:port, so strip it before matching paths.

Detection ideas

  • Scanners and tools: user_agent values such as sqlmap, python-requests or zgrab, and requests without SNI — the ALB scanner rule.
  • Probing: many 404s across odd paths from one client:port address; see the web probe reference.
  • Password guessing: runs of 401 on a login path from one address.
  • Data leaving: large sent_bytes with 200 on admin or export paths for a client that was probing.
  • WAF verdicts: waf in actions_executed with 403 — check which rule fired in the WAF logs.

The free browser analyzer reads ALB logs (including .gz) and runs these checks locally.

Sending AWS ALB / ELB to an LLM

One megabyte of this format is about 618,756 tokens on current Claude models and 471,568 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $1,238 in input tokens alone (prices of 2026-10-24). Estimate your own volume →

Detections and guides for AWS ALB / ELB

Frequently Asked Questions

What is the difference between elb_status_code and target_status_code?
elb_status_code is what the load balancer returned to the client; target_status_code is what your application returned to the load balancer. They are usually equal. When the load balancer, a fixed-response rule or AWS WAF answers by itself, target_status_code is a hyphen; when the target fails or times out, the load balancer returns its own 502 or 504.
How do I enable ALB access logs?
Access logging is off by default. Turn it on in the load balancer's attributes (access_logs.s3.enabled) and give an S3 bucket whose policy lets Elastic Load Balancing write to it. The load balancer then writes gzip-compressed files to the bucket; AWS documents the path and timing on its access log page.
Why is the client address in my application logs wrong?
Behind an ALB, your targets see the load balancer's address as the client. The ALB access log has the real client in client:port, and it passes it to targets in the X-Forwarded-For header. Configure your web server to log or trust that header from the load balancer.
How do I query ALB logs without downloading them?
AWS documents an Amazon Athena table definition for ALB access logs. Create it over the S3 prefix and query with SQL — for example, counting requests per client address with elb_status_code 401 or 403, or listing user agents seen on admin paths.

Analyze a AWS ALB / ELB file in your browser

The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.

Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing

How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]