AWS S3 Server Access Log Fields: Reference With Examples
Published
One space-separated line per request made to an S3 bucket: who (Requester, Remote IP), what (Operation such as REST.GET.OBJECT, the Key and the full Request-URI), the result (HTTP status, Error Code), how much was sent, and how the request was signed.
Official documentation: AWS: Amazon S3 server access log format · AWS: Enabling Amazon S3 server access logging
Sample record
79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be my-app-bucket [15/Jan/2024:09:00:01 +0000] 203.0.113.10 arn:aws:iam::123456789:user/alice 1A23456B7EXAMPLE REST.GET.OBJECT public/index.html "GET /my-app-bucket/public/index.html HTTP/1.1" 200 - 2048 2048 12 - "-" "S3Console/0.4, aws-internal/3" - s3abcdefg SigV4 ECDHE-RSA-AES128-GCM-SHA256 AuthHeader my-app-bucket.s3.amazonaws.com TLSv1.2 - - From the LogTriage parser test corpus — synthetic data, no real hosts or users.
Field reference
| Field | Type | Meaning | Why it matters for security |
|---|---|---|---|
| Bucket Ownere.g. 79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be | string | AWS: "The canonical user ID of the owner of the source bucket." | Constant per bucket; useful only when logs from several accounts are merged. |
| Buckete.g. corp-data-bucket | string | The name of the bucket the request was made to. | Sensitive buckets deserve their own alerts. |
| Timee.g. [15/Jan/2024:14:30:01 +0000] | [DD/Mon/YYYY:HH:MM:SS +0000] | AWS: "The time at which the request was received; these dates and times are in Coordinated Universal Time (UTC)." | The time the request arrived, not when the log was delivered — delivery can be hours later. |
| Remote IPe.g. 185.220.101.42 | IP address | AWS: "The apparent IP address of the requester. Intermediate proxies and firewalls might obscure the actual IP address of the machine that's making the request." | Internet addresses reading confidential keys anonymously are the alert; requests from inside AWS show AWS addresses. |
| Requestere.g. arn:aws:iam::123456789:user/attacker | string | AWS: "The canonical user ID of the requester, or a - for unauthenticated requests." IAM requests show the ARN. | "-" means anonymous — someone read the object because the bucket or object allows public access. |
| Operatione.g. REST.GET.OBJECT | string | The operation, written as REST.<HTTP method>.<resource type> (REST.GET.OBJECT, REST.PUT.OBJECT, REST.GET.VERSIONING…), with WEBSITE., BATCH. and S3. forms for other request paths. | GET.OBJECT on many keys is collection; PUT.OBJECT from an unknown requester is someone storing files in your bucket. |
| Keye.g. confidential/customers.csv | string | AWS: "The key (object name) part of the request." | The data that was touched; the Key is what you report in a breach assessment. |
| Request-URIe.g. GET /corp-data-bucket/confidential/customers.csv HTTP/1.1 | string | AWS: "The Request-URI part of the HTTP request message." | Shows query parameters such as presigned-URL signatures or list prefixes. |
| HTTP statuse.g. 200 | number | AWS: "The numeric HTTP status code of the response." | 403 AccessDenied bursts are enumeration; 200 on anonymous reads is exposure. |
| Error Codee.g. - | string | AWS: "The Amazon S3 error code, or - if no error occurred." | AccessDenied, NoSuchKey and NoSuchBucket in volume are someone guessing names. |
| Bytes Sente.g. 5242880 | number | AWS: "The number of response bytes sent, excluding HTTP protocol overhead, or - if zero." | Sum per Remote IP to measure how much left. |
| User-Agente.g. python-requests/2.28.0 | string | AWS: "The value of the HTTP User-Agent header." | Scripts and SDKs where you expect the console or your application are worth checking. |
| Signature Versione.g. SigV4 | string | AWS: "The signature version, SigV2 or SigV4, that was used to authenticate the request, or a - for unauthenticated requests." | "-" confirms an anonymous request. |
| Authentication Typee.g. AuthHeader | string | AWS: "The type of request authentication used: AuthHeader for authentication headers, QueryString for query strings (presigned URLs)." | QueryString requests are presigned URLs — whoever has the link can use it until it expires. |
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
With server access logging enabled, S3 writes a record for each request to the bucket, in the field order AWS documents in Amazon S3 server access log format. The line names the bucket owner and bucket, the time (UTC), the requester’s apparent address and identity, the operation and object key, the request line, the HTTP status and S3 error code, bytes and object size, timings, the referrer and user agent, and the TLS and signature details AWS added over time.
The malicious sample shows an exposed bucket being emptied: two anonymous REST.GET.OBJECT requests from a scripted client for confidential/customers.csv and employees.csv, megabytes each with status 200, then a different address with IAM credentials uploading malware/backdoor.sh.
Where to get it
- Target bucket. S3 writes log objects into the target bucket you choose, under the prefix you set, with names built from the date and time. Each object holds many records from a short window, so one request can only be found by searching across objects.
- Athena. AWS documents a table definition so you can query the logs in place with SQL.
- SIEM. Collect from the target bucket through S3 event notifications.
# Anonymous requests that succeeded, by key, from downloaded log files
awk '$6 == "-" && $13 == 200 {print $4, $9}' logs/* | sort | uniq -c | sort -rn | head
Parsing pitfalls
- Bracketed time. The time is
[15/Jan/2024:14:30:01 +0000]— two space-separated tokens if you split naively. - Quoted fields with spaces. The Request-URI, Referer and User-Agent are quoted; split on quotes. The
awkpositions above only hold for the leading fields. - ”-” means missing. Requester, Error Code, Bytes Sent and others use
-for none. - Trailing fields grow. AWS appends fields over time; tolerate extra fields at the end.
- Best effort. Missing lines do not prove no request happened.
Detection ideas
- Anonymous access: Requester
-with status 200, especially on keys that look sensitive — the S3 anonymous access rule. - Bulk reads: many GET.OBJECT for one Remote IP or Requester in a short time, or a large sum of Bytes Sent.
- Enumeration: bursts of 403 AccessDenied or 404 NoSuchKey from one address.
- Unexpected writes: PUT.OBJECT from identities or addresses that never write to the bucket.
- Presigned URL misuse: QueryString authentication from many addresses for the same key.
The free browser analyzer reads S3 server access logs and runs these checks locally.
Sending AWS S3 Server Access Logs to an LLM
One megabyte of this format is about 683,512 tokens on current Claude models and 473,048 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $1,367 in input tokens alone (prices of 2026-10-24). Estimate your own volume →
Detections and guides for AWS S3 Server Access Logs
Frequently Asked Questions
- How do I enable S3 server access logs?
- Server access logging is off by default. Enable it in the bucket's properties and choose a target bucket in the same Region; S3 then writes log objects there. Do not log a bucket into itself. CloudTrail data events are the alternative when you need guaranteed, near-real-time records of object access.
- Are S3 server access logs complete?
- AWS delivers server access logs on a best-effort basis: most records arrive within a few hours, but some can be late and AWS does not guarantee every request is logged. For investigations where completeness matters, enable CloudTrail data events for S3 as well.
- What does a Requester of - mean?
- AWS writes - for unauthenticated requests. A 200 response with Requester - and Signature Version - means an anonymous user read or wrote the object, which is only possible if the bucket policy, an ACL or an access point allows public access.
- What is the difference between S3 access logs and CloudTrail data events?
- Both can record object reads and writes. Server access logs are free to write (you pay for storage), best effort and in this space-separated format. CloudTrail data events cost per event, are delivered reliably as JSON with the IAM identity, and integrate with CloudTrail Lake and EventBridge.
Analyze a AWS S3 Server Access Logs 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]