Fake Server Log Generator
Generates realistic fake server log lines in common formats like Apache, Nginx, and JSON logs
Generated 150 words · 1,272 characters
See 3 examples
- Example 1
178.83.243.140 - - [24/Nov/2026:18:08:44 +0000] "GET /api/products HTTP/1.1" 403 23892 177.85.202.162 - - [27/Nov/2026:17:24:24 +0000] "DELETE /static/app.js HTTP/1.1" 403 21695 237.89.210.12 - - [23/Nov/2026:23:37:19 +0000] "PUT /health HTTP/1.1" 304 26634 2.145.215.185 - - [26/Nov/2026:10:18:35 +0000] "GET /favicon.ico HTTP/1.1" 201 14789 2.148.171.156 - - [23/Nov/2026:18:42:43 +0000] "PATCH /api/auth/token HTTP/1.1" 401 8012 81.216.233.142 - - [23/Nov/2026:11:25:01 +0000] "POST /favicon.ico HTTP/1.1" 403 36401 25.176.135.97 - - [28/Nov/2026:02:19:27 +0000] "POST /login HTTP/1.1" 200 20574 225.239.245.103 - - [25/Nov/2026:11:22:16 +0000] "PUT /health HTTP/1.1" 201 24654 85.108.219.74 - - [23/Nov/2026:06:48:06 +0000] "POST /api/v2/data HTTP/1.1" 301 17103 78.9.162.204 - - [21/Nov/2026:19:50:08 +0000] "POST /login HTTP/1.1" 201 34020 239.73.162.12 - - [25/Nov/2026:01:35:35 +0000] "GET /favicon.ico HTTP/1.1" 201 43131 27.182.172.162 - - [28/Nov/2026:00:11:20 +0000] "PUT /health HTTP/1.1" 403 47930 83.237.110.176 - - [25/Nov/2026:19:38:41 +0000] "PUT /api/users HTTP/1.1" 201 47863 27.245.94.145 - - [25/Nov/2026:22:57:37 +0000] "PATCH /api/settings HTTP/1.1" 400 3837 58.51.154.242 - - [25/Nov/2026:21:13:51 +0000] "PATCH /api/auth/token HTTP/1.1" 502 38086
- Example 2
4.248.119.86 - - [25/Nov/2026:10:14:30 +0000] "PATCH /login HTTP/1.1" 304 4601 62.220.17.35 - - [22/Nov/2026:03:24:19 +0000] "POST /api/v2/data HTTP/1.1" 200 38076 139.173.112.3 - - [25/Nov/2026:09:10:15 +0000] "PUT /favicon.ico HTTP/1.1" 301 1682 69.123.162.192 - - [28/Nov/2026:02:23:19 +0000] "DELETE /favicon.ico HTTP/1.1" 301 23568 37.236.47.113 - - [25/Nov/2026:01:27:25 +0000] "POST /health HTTP/1.1" 200 32640 227.94.139.88 - - [28/Nov/2026:02:15:55 +0000] "PATCH /favicon.ico HTTP/1.1" 403 2487 207.254.189.42 - - [22/Nov/2026:19:50:33 +0000] "DELETE /favicon.ico HTTP/1.1" 200 46182 41.239.244.69 - - [24/Nov/2026:08:07:58 +0000] "PUT /api/orders HTTP/1.1" 404 27593 177.8.13.253 - - [25/Nov/2026:10:05:48 +0000] "POST /login HTTP/1.1" 301 44599 18.56.246.177 - - [22/Nov/2026:06:17:01 +0000] "DELETE /api/v2/data HTTP/1.1" 401 27790 93.13.233.93 - - [26/Nov/2026:07:42:37 +0000] "PATCH /api/products HTTP/1.1" 200 12815 246.166.18.184 - - [23/Nov/2026:18:12:13 +0000] "POST /api/auth/token HTTP/1.1" 200 37061 138.192.12.69 - - [23/Nov/2026:18:01:50 +0000] "DELETE /api/auth/token HTTP/1.1" 200 45809 136.86.225.88 - - [22/Nov/2026:06:09:58 +0000] "DELETE /api/products HTTP/1.1" 404 14881 182.125.243.66 - - [23/Nov/2026:23:10:51 +0000] "DELETE /api/settings HTTP/1.1" 200 7835
- Example 3
16.246.154.84 - - [24/Nov/2026:13:34:08 +0000] "DELETE /favicon.ico HTTP/1.1" 200 47146 135.222.78.4 - - [21/Nov/2026:11:22:02 +0000] "PATCH /api/orders HTTP/1.1" 404 38631 198.61.14.115 - - [27/Nov/2026:06:59:08 +0000] "PUT /health HTTP/1.1" 304 11438 13.133.131.79 - - [24/Nov/2026:12:46:14 +0000] "GET /favicon.ico HTTP/1.1" 200 13300 104.33.165.142 - - [25/Nov/2026:18:16:34 +0000] "GET /api/orders HTTP/1.1" 400 49340 243.79.73.188 - - [24/Nov/2026:02:17:42 +0000] "PATCH /api/orders HTTP/1.1" 500 23971 76.121.183.140 - - [21/Nov/2026:07:54:46 +0000] "DELETE /api/settings HTTP/1.1" 401 30360 91.245.71.236 - - [22/Nov/2026:22:04:33 +0000] "PATCH /api/products HTTP/1.1" 404 21858 140.105.25.0 - - [22/Nov/2026:03:43:43 +0000] "DELETE /api/users HTTP/1.1" 502 47083 226.73.160.37 - - [26/Nov/2026:17:06:30 +0000] "PATCH /api/users HTTP/1.1" 301 32334 145.220.170.229 - - [22/Nov/2026:13:29:41 +0000] "PATCH /static/app.js HTTP/1.1" 200 49067 147.190.26.92 - - [25/Nov/2026:06:30:10 +0000] "PATCH /api/users HTTP/1.1" 304 2772 2.73.189.93 - - [23/Nov/2026:10:09:26 +0000] "POST /static/app.js HTTP/1.1" 304 17964 198.71.164.118 - - [24/Nov/2026:10:08:42 +0000] "DELETE /api/products HTTP/1.1" 201 21722 8.52.241.138 - - [25/Nov/2026:06:18:36 +0000] "GET /login HTTP/1.1" 301 28724
About this generator
Testing a log parser against manually typed entries produces shallow coverage — you write formats you know, and your parser looks correct until it hits a real variant. A fake server log generator produces up to 100 lines per run in four formats that real servers emit, with realistic variation across status codes, IPs, and response sizes. The `format` input controls line structure. 'apache' follows Apache Combined Log Format: IP, bracketed timestamp, quoted request, status code, and byte count. 'nginx' extends this with a referrer and user-agent drawn from browser, curl, python-requests, and Go-http-client patterns. 'json' produces one NDJSON object per line with timestamp, level, service, method, path, status, responseTime, and message. 'syslog' produces ISO timestamp, service name, and level-prefixed message. The `lines` input sets volume from 1 to 100.
How to use
- Set the 'Number of Log Lines' input to how many entries you need for your test.
- Choose your target format from the 'Log Format' dropdown: Apache, Nginx, JSON, or syslog.
- Click Generate to produce a block of randomised but realistic log lines in the output area.
- Copy the output and paste it into a test log file, or feed it directly into your parser, shipper, or dashboard.
Use Cases
- •Testing Apache or Nginx Grok patterns in Logstash before pushing parser config to production
- •Seeding a Kibana or Grafana demo dashboard with realistic mixed-format traffic across all four log types
- •Generating NDJSON fixture files for Jest or pytest unit tests on Elasticsearch ingestion code
- •Simulating a burst of 500 errors to verify PagerDuty or Alertmanager alert threshold rules
- •Validating Splunk HEC field extraction and index routing config before live traffic arrives
Tips
- →Generate logs in all available formats back-to-back to verify your pipeline handles multi-source log ingestion without format collisions.
- →Paste Apache or Nginx output into a .log file and point Filebeat at it — the format is close enough to real access logs to trigger proper field mapping.
- →Use the JSON format with jq to quickly validate field names match your expected log schema before configuring an Elasticsearch index template.
- →For alerting rule tests, generate 100+ lines and scan for the natural 500-error distribution — your alert threshold should fire on that baseline without false-positive tuning.
- →Combine multiple generated batches in different formats into one file to test a log router like Logstash that must conditionally parse by format.
- →When writing Grok patterns for Logstash or Elasticsearch, start with 15 lines to catch edge cases in path strings and user-agent fields before scaling up.
FAQ
how do I generate fake apache log lines for a parser test
Select 'apache' from the format dropdown, set your line count, and click Generate. Each line follows the Apache Combined Log Format: client IP, bracketed timestamp, quoted HTTP request line, status code, and byte size. Copy the output into a .log file and point your Filebeat input, Grok debugger, or regex tester at it. The entries include a realistic spread of GET and POST requests, 200s, 404s, and 500s.
what does the json log format output and does it work with elasticsearch or jq
The JSON format produces one object per line (NDJSON) with timestamp, level, service, method, path, status, responseTime, and message fields. This structure works directly with Elasticsearch's bulk ingest API and with jq for field extraction testing. It's the most portable option if you're validating a structured logging schema or testing a log aggregation pipeline.
is it safe to use fake log data instead of copying real production logs
Yes, and it's usually preferable. Real production logs can contain genuine user IPs, session tokens, and PII that shouldn't leave your production environment. Generated entries are statistically plausible — a realistic mix of status codes and common paths like /api/, /login, and /health — so they exercise your parsers without any privacy or compliance risk.
does the nginx format include a user-agent string that will match real grok patterns
Yes. The nginx format adds a referrer field (a dash, per the combined format spec) and a user-agent string drawn from a pool including Mozilla/5.0, curl/7.88.1, python-requests/2.31.0, Go-http-client/1.1, and axios/1.4.0. These strings are realistic enough to trigger standard Nginx grok patterns that extract the agent field.
You might also like
Popular tools from other categories that share themes with this one.