Sample Log Generator
Seeded, format-correct fake logs for dashboards, parsers and exercises
Parameters
~244.1 KB estimatedPreview
No logs generatedSet parameters and generate logs
Preview shows the first 100 lines; download contains the whole file.
Examples
Apache demo
5000 lines · 24 h · healthy profile~1.2 MB .log file with mostly 200s and a few 404/500sA realistic access log for a dashboard screenshot or parser fixture.
Structured errors
JSONL · 2000 lines · 30% error rate{"ts": "…", "level": "error", "status": 500, …}Structured fields make it easy to assert on levels and services in tests.
Syslog fixture
Syslog · seed 42 · 60 min span<134>Jan 01 00:03:12 web01 sshd[4821]: request completedFacility/severity PRI math stays consistent across the batch.
About this tool
The Sample Log Generator fabricates fake log lines in four real formats: Apache/Nginx combined access logs, Nginx error-log style, JSON lines with structured fields, and RFC 3164 syslog with consistent PRI values. It is built for populating dashboards, testing parsers and preparing teaching exercises — not for replaying traffic.
Generation is seeded: the same seed plus the same parameters produce byte-identical output on any machine because timestamps are rendered in UTC. Paths are sampled with Zipf-ish weights so popular routes appear more often, status codes follow a selectable profile (healthy, degraded or error-storm) with an error-rate override, and timestamps are locked to the chosen span in strictly non-decreasing order.
Safety is by construction: every address comes from the RFC 5737 documentation blocks (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24) and every host is example.com, so the output is safe to screenshot, paste into docs or share with a teammate. Optional business-hours and burst toggles shape the traffic curve without breaking ordering.
The interface shows a size estimate up front, previews the first 100 lines and lets you download the entire file (.log or .jsonl). Post-generation stats summarise status and level counts and, for syslog, PRI values.
What this tool does not do
- No network traffic is generated — the tool only writes text files.
- Only four formats are supported; Windows Event Log and OpenTelemetry shapes are out of scope.
- The preview is capped at 100 lines, though the download contains the full requested count.
- Traffic curves are approximate (sinusoidal day/night and simple bursts), not a simulation model.
How to use this tool
Choose a format
Pick Apache/Nginx combined, Nginx error log, JSON lines or syslog.
Set volume and shape
Enter line count, UTC start and span in minutes, status profile and error rate; optionally enable the traffic curve or bursts.
Generate
Press Generate logs (or Mod+Enter). The same seed and parameters always reproduce the same file.
Inspect and export
Read the first 100 lines and the status/level stats, then Copy preview or download the full log.
Use cases
Dashboard demos
Populate Grafana or Kibana with a day of plausible traffic without touching production data.
Parser tests
Feed format-correct, deterministic lines into a log parser and assert on status/level distributions.
Teaching
Hand students a seed and parameters so everyone analyses the exact same dataset.
Supported formats
| Format | Line shape |
|---|---|
| Apache / Nginx combined | IP - - [dd/Mon/yyyy:hh:mm:ss +0000] "METHOD path HTTP/x" status bytes "referer" "ua". |
| Nginx error | Timestamp [level] pid#0: *id message, client: IP, server: example.com, request: "…". |
| JSON lines | {ts, level, msg, service, trace_id, ip, path, status} — one object per line. |
| Syslog | <PRI>MMM dd HH:mm:ss host daemon[pid]: message; PRI = facility(16–23)×8 + severity. |
| Status profiles | Healthy 92% 200, degraded 70% 200, error-storm 50% 500 before the error-rate override. |
Timestamps are UTC for every format, which is what makes seeded output byte-identical across machines.
Common mistakes
Mistake:Treating generated lines as a traffic replay.
Fix:This is a static file generator. It does not send requests, and the addresses are documentation-only.
Mistake:Expecting the same seed to give the same bytes on another timezone.
Fix:The generator renders every timestamp in UTC, so output is machine-independent; do not post-process it into local time if you need byte equality.
Mistake:Confusing the error-rate slider with the status profile.
Fix:The profile sets the base mix; the slider overrides the 5xx mass and renormalises the rest. Set it to 0 to use the profile untouched.
Frequently asked questions
Which formats are supported?
Four: Apache/Nginx combined access logs, Nginx error-log style lines, JSON lines with ts/level/msg/service/trace_id/ip/path/status fields, and RFC 3164 syslog with facility/severity-consistent PRI values. The format selector changes both the line grammar and the download extension (.log or .jsonl).
Can I control the error rate?
Yes. Choose a base status profile (healthy, degraded or error-storm) and then set the error-rate slider from 0 to 100%. The slider overrides the 5xx mass and renormalises the remaining statuses; level distribution in JSON/syslog follows the sampled status. The stats panel shows the resulting counts so you can verify the mix.
Is the output deterministic?
With a seed, yes — byte-for-byte. The same seed, count, span, format and toggles produce identical lines. All timestamps are rendered in UTC (Apache uses +0000, JSON uses ISO-8601 with Z, syslog uses UTC clock time), so the result does not depend on your machine's timezone. Changing any parameter legitimately changes the stream.
Are the IPs and domains safe?
Yes. Addresses come only from the RFC 5737 documentation blocks 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24, and every server name is example.com. The output is safe to screenshot, paste into documentation or share with teammates; it contains no real-looking personal data.
How big can files be?
Up to 20,000 lines per batch. The panel shows a size estimate before generation based on the selected format (roughly 250 bytes per Apache line, less for syslog). The preview is capped at 100 lines to keep the page responsive, while the download contains every line. For giant fixtures, generate several batches rather than straining the browser.
How does the time span work?
Timestamps are locked to the span you enter: the generator walks from start to start+span, adding bounded jitter so the lines fill the window and stay in non-decreasing order. The business-hours curve and burst toggle shape clustering without leaving the window. This makes '5,000 lines over 24 hours' deterministic instead of a random walk that might miss the end.
References & standards
Related tools
ABA Routing Number Generator
Generate 9-digit US ABA routing numbers with weighted Mod-10 checks.
Address Generator
Generate realistic addresses in the correct format for 21 countries — single-line, multi-line, JSON or HTML — plus a postcode validator. Test data only, runs in your browser.
API Key Generator
Generate realistic test API keys — custom prefixes, lengths, alphabets, optional checksum, bulk .env/CSV export. Locally in your browser.
Argentina CUIT / CUIL Generator
Generate and validate 11-digit Argentine CUIT and CUIL numbers with AFIP Mod-11 check digits.
ASCII Text Art Generator
Turn text into large ASCII art banners with multiple figlet fonts
Australia ABN Generator
Generate and validate 11-digit Australian Business Numbers (ABN) using weighted Mod-89.