5 MB LOG sample file

A LOG file of exactly 5,242,880 bytes. It is a valid Log file file, generated for this site and checked with an independent parser.

Download

sample-log-5mb.log

5 MB5,242,880 bytes

Download 5 MB LOG

Direct download. No sign-up and no waiting.

Type
text/plain
SHA-256
22d0fb6e8eeabf001bd7000901be5964397f872c1501cddeafd398435fc00b9e
Direct URL
https://sampletestfiles.com/downloads/log/sample-log-5mb.log

What is in this file

31,985 web-server access log lines in Combined Log Format with increasing timestamps. One final request line carries a lengthened query string so the file reaches the exact size.

Lines31,986
FormatCombined Log Format (Apache and nginx access logs)
IP addressesDocumentation ranges from RFC 5737
EncodingUTF-8 (ASCII characters only)
Line endingsLF

How the file begins

The opening lines of sample-log-5mb.log, exactly as they appear in the file.

192.0.2.239 - - [01/Jan/2026:00:00:00 +0000] "GET /assets/app.js HTTP/1.1" 200 4759 "https://example.com/" "ExampleMonitor/1.0"
198.51.100.123 - - [01/Jan/2026:00:00:01 +0000] "GET /favicon.ico HTTP/1.1" 500 33395 "https://example.com/" "curl/8.5.0"
192.0.2.55 - - [01/Jan/2026:00:00:03 +0000] "GET /favicon.ico HTTP/1.1" 404 10647 "https://example.com/" "ExampleMonitor/1.0"
198.51.100.184 - - [01/Jan/2026:00:00:05 +0000] "GET /assets/app.css HTTP/1.1" 200 36767 "https://example.com/" "Mozilla/5.0 (X11; Linux x86_64; rv:12…
203.0.113.34 - - [01/Jan/2026:00:00:06 +0000] "GET /index.html HTTP/1.1" 204 19807 "https://example.com/" "ExampleMonitor/1.0"
203.0.113.75 - - [01/Jan/2026:00:00:08 +0000] "GET /downloads/report.pdf HTTP/1.1" 304 8816 "https://example.com/" "ExampleMonitor/1.0"

Preview

Shows the first 64 KB of the file.

Where 5 MB matters

A 5,242,880-byte file: the size of a phone photo and the minimum part size for S3 multipart uploads. These are the default limits a file of this size is useful for testing:

SystemLimitNote
PHP2 MB per uploaded file by default (upload_max_filesize)A 5 MB upload fails on an untuned PHP installation.
Vercel Functions4.5 MB request bodyLarger uploads must go directly to object storage.
Amazon S3 multipart upload5 MiB minimum part sizeThis file is exactly one minimum part.
AWS Lambda6 MB synchronous invocation payload5 MB of binary data exceeds it once base64-encoded.
Browser localStorageAbout 5 MB per originStoring this file as text fills the quota.
Django2.5 MB in memory by defaultLarger uploads are streamed to a temporary file instead of held in memory.

All 5 MB sample files

Use this file for

  • Simulating photo uploads from phones
  • Benchmarking ingestion pipelines
  • Testing log parsers and grok patterns

Testing notes for LOG

  • Request paths and user agents come from clients and may contain quotes or escape sequences; a pattern that assumes clean input will misparse real traffic.
  • Timestamps carry a zone offset. Parsers that drop it shift every event.

LOG format reference

Technical details

File namesample-log-5mb.log
FormatLOG (Log file)
Extension.log
MIME typetext/plain
Size5,242,880 bytes (5 MB)
KindText
SHA-25622d0fb6e8eeabf001bd7000901be5964397f872c1501cddeafd398435fc00b9e
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewAvailable on this page
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
CategoryTesting

Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Download from the command line and verify

Fetch the file with curl, then compare its checksum with the SHA-256 value above.

curl -o sample-log-5mb.log 'https://sampletestfiles.com/downloads/log/sample-log-5mb.log'
sha256sum sample-log-5mb.log     # Linux
shasum -a 256 sample-log-5mb.log # macOS

On Windows, run Get-FileHash sample-log-5mb.log -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.

Related files

Questions about this file

Is this file exactly 5 MB?
Yes. It is 5,242,880 bytes, which is 5 MB in the binary units that operating systems and server limits use (1 KB = 1,024 bytes).
What is inside the 5 MB LOG file?
31,985 web-server access log lines in Combined Log Format with increasing timestamps. One final request line carries a lengthened query string so the file reaches the exact size.
Are the IP addresses real?
No. They come from the address ranges that RFC 5737 reserves for documentation, so they belong to no one.