Free LOG sample, test and dummy files

Line-oriented text records of events. The samples use the web-server Combined Log Format. Download valid LOG test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.

Extension
.log
MIME type
text/plain
Kind
Text
Category
Testing

Create a LOG file of any size

Choose any size from 97 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.

LOG files by size

Every file below is a valid Log file file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.

LOG sample files by size
FileSizeContentsDownload
1 KB LOG samplesample-log-1kb.log 1 KB1,024 bytes Lines: 5 Download LOG
5 KB LOG samplesample-log-5kb.log 5 KB5,120 bytes Lines: 28 Download LOG
10 KB LOG samplesample-log-10kb.log 10 KB10,240 bytes Lines: 54 Download LOG
25 KB LOG samplesample-log-25kb.log 25 KB25,600 bytes Lines: 142 Download LOG
50 KB LOG samplesample-log-50kb.log 50 KB51,200 bytes Lines: 294 Download LOG
100 KB LOG samplesample-log-100kb.log 100 KB102,400 bytes Lines: 599 Download LOG
200 KB LOG samplesample-log-200kb.log 200 KB204,800 bytes Lines: 1,191 Download LOG
500 KB LOG samplesample-log-500kb.log 500 KB512,000 bytes Lines: 2,996 Download LOG
1 MB LOG samplesample-log-1mb.log 1 MB1,048,576 bytes Lines: 6,162 Download LOG
2 MB LOG samplesample-log-2mb.log 2 MB2,097,152 bytes Lines: 12,305 Download LOG
3 MB LOG samplesample-log-3mb.log 3 MB3,145,728 bytes Lines: 18,458 Download LOG
5 MB LOG samplesample-log-5mb.log 5 MB5,242,880 bytes Lines: 31,986 Download LOG
10 MB LOG samplesample-log-10mb.log 10 MB10,485,760 bytes Lines: 63,820 Download LOG
15 MB LOG samplesample-log-15mb.log 15 MB15,728,640 bytes Lines: 92,129 Download LOG
20 MB LOG samplesample-log-20mb.log 20 MB20,971,520 bytes Lines: 122,875 Download LOG
25 MB LOG samplesample-log-25mb.log 25 MB26,214,400 bytes Lines: 153,613 Download LOG
30 MB LOG samplesample-log-30mb.log 30 MB31,457,280 bytes Lines: 184,304 Download LOG
50 MB LOG samplesample-log-50mb.log 50 MB52,428,800 bytes Lines: 307,184 Download LOG
100 MB LOG samplesample-log-100mb.log 100 MB104,857,600 bytes Lines: 614,306 Download LOG

More LOG samples

Hand-designed files with realistic content or a specific edge case.

Curated LOG sample files
FileSizeContentsDownload
Sample web server access log (500 lines)sample-access.log 80.2 KB82,141 bytes Lines: 500 Download LOG

What is a LOG file?

A log file records events as lines of text, typically one per event, appended in time order. The layout depends on the software that wrote it.

The samples follow the Combined Log Format written by Apache and nginx: client address, timestamp, request line, status code, response size, referrer and user agent.

How to recognise a LOG file

LOG files have no file signature, the magic bytes that most binary formats begin with.

No signature bytes. LOG files are identified by parsing their content.

Extension.log
MIME typetext/plain
LayoutCombined Log Format
EncodingASCII or UTF-8
Record separatorLine feed
GrowthAppend-only; rotated and compressed by tools such as logrotate

What to test for

These are the behaviours that most often go wrong when software handles LOG files.

Strengths of LOG

  • Human-readable and easy to search with standard command-line tools.
  • Append-only, so writing is cheap and safe.

Limitations of LOG

  • No schema: every consumer needs its own parsing rules.
  • Free-form fields make reliable parsing harder than structured logging.

Typical uses of LOG test files

  • Testing log parsers and grok patterns
  • Checking dashboards and alert rules
  • Benchmarking ingestion pipelines

Software that opens LOG

  • tail, grep, awk and less
  • GoAccess, Logstash, Fluent Bit and Vector
  • Splunk, Elasticsearch and Grafana Loki

Specifications

Related

LOG sample files: questions

Are the IP addresses real?
No. They come from the address ranges that RFC 5737 reserves for documentation, so they belong to no one.
What is the MIME type of a LOG file?
The MIME type is text/plain. The file extension is .log.
Is a sample LOG file the same as a dummy or example LOG file?
Yes. Sample, test, dummy and example LOG files are different names for the same thing: a LOG file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy LOG file.