Skip to content
Convertto

Sample Log File Generator

Generate realistic Apache, Nginx, JSON, syslog or application logs with a controllable error rate.

A sample log generator produces realistic log files in Apache combined or common format, structured JSON, syslog RFC 3164, logfmt or an application log with levels. Set the line count, time span, distinct client IP pool and error rate, and the generated traffic mirrors the shape of a real access log.

Runs in your browser
Formats
Apache combined and common, structured JSON, syslog RFC 3164, logfmt and levelled application logs
Volume
Up to 100,000 lines spanning anything from six minutes to a full year
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Why control the number of distinct IPs?

Real traffic is dominated by repeat visitors, so a small IP pool produces the heavy-tailed distribution that log analysers and rate limiters are actually tuned against. A unique IP per line looks nothing like production.

Can I load this into Elasticsearch or Splunk?

Yes. The Apache and syslog formats parse with the standard built-in patterns, and the JSON format is one document per line, which is what bulk ingestion expects.

How to use the sample log file generator

  1. 1Choose the log format.
  2. 2Set the lines.
  3. 3Set the error rate.
  4. 4Set the distinct client ips.
  5. 5Enter or paste your start time.
  6. 6Set the time span.
  7. 7Enter or paste your seed.
  8. 8The result appears immediately — copy or download it.

Embed this tool

Put the working sample log file generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More samples & mock data