Fake Log Entry Generator (Line)
Generates realistic application and server log lines for testing log parsers and dashboards
- 204.31.45.74 - - [28/Nov/2026:06:21:52 +0000] "PATCH /static/app.js HTTP/1.1" 204 15886 "-" "Go-http-client/1.1"
- 97.135.34.218 - - [28/Nov/2026:05:54:59 +0000] "PATCH /health HTTP/1.1" 403 7781 "-" "axios/1.6.0"
- 253.142.163.58 - - [28/Nov/2026:06:35:08 +0000] "DELETE /auth/login HTTP/1.1" 400 25170 "-" "axios/1.6.0"
- 78.175.92.233 - - [28/Nov/2026:06:10:48 +0000] "GET /api/v1/orders HTTP/1.1" 403 39226 "-" "curl/7.88"
- 64.79.83.180 - - [28/Nov/2026:06:21:39 +0000] "DELETE /api/v1/users HTTP/1.1" 200 303 "-" "Go-http-client/1.1"
- 71.135.9.113 - - [28/Nov/2026:06:30:53 +0000] "GET /api/v1/users HTTP/1.1" 200 18645 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120"
- 117.99.195.76 - - [28/Nov/2026:06:39:08 +0000] "DELETE /api/v1/events HTTP/1.1" 403 457 "-" "curl/7.88"
- 200.30.83.248 - - [28/Nov/2026:05:56:13 +0000] "GET /static/app.js HTTP/1.1" 304 20354 "-" "Go-http-client/1.1"
- 86.138.45.89 - - [28/Nov/2026:06:34:49 +0000] "GET /api/v1/users HTTP/1.1" 403 48467 "-" "axios/1.6.0"
- 11.12.71.23 - - [28/Nov/2026:05:55:34 +0000] "PATCH /api/v1/orders HTTP/1.1" 403 7058 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120"
Generated 10 items
See 3 examples
- Example 1
204.31.45.74 - - [28/Nov/2026:06:21:52 +0000] "PATCH /static/app.js HTTP/1.1" 204 15886 "-" "Go-http-client/1.1" 97.135.34.218 - - [28/Nov/2026:05:54:59 +0000] "PATCH /health HTTP/1.1" 403 7781 "-" "axios/1.6.0" 253.142.163.58 - - [28/Nov/2026:06:35:08 +0000] "DELETE /auth/login HTTP/1.1" 400 25170 "-" "axios/1.6.0" 78.175.92.233 - - [28/Nov/2026:06:10:48 +0000] "GET /api/v1/orders HTTP/1.1" 403 39226 "-" "curl/7.88" 64.79.83.180 - - [28/Nov/2026:06:21:39 +0000] "DELETE /api/v1/users HTTP/1.1" 200 303 "-" "Go-http-client/1.1" 71.135.9.113 - - [28/Nov/2026:06:30:53 +0000] "GET /api/v1/users HTTP/1.1" 200 18645 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120" 117.99.195.76 - - [28/Nov/2026:06:39:08 +0000] "DELETE /api/v1/events HTTP/1.1" 403 457 "-" "curl/7.88" 200.30.83.248 - - [28/Nov/2026:05:56:13 +0000] "GET /static/app.js HTTP/1.1" 304 20354 "-" "Go-http-client/1.1" 86.138.45.89 - - [28/Nov/2026:06:34:49 +0000] "GET /api/v1/users HTTP/1.1" 403 48467 "-" "axios/1.6.0" 11.12.71.23 - - [28/Nov/2026:05:55:34 +0000] "PATCH /api/v1/orders HTTP/1.1" 403 7058 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120"
- Example 2
81.56.168.57 - - [28/Nov/2026:05:58:46 +0000] "DELETE /api/v1/events HTTP/1.1" 201 33235 "-" "python-requests/2.31" 113.143.183.135 - - [28/Nov/2026:06:36:22 +0000] "PUT /api/v1/products HTTP/1.1" 200 11001 "-" "Go-http-client/1.1" 125.11.190.195 - - [28/Nov/2026:06:39:25 +0000] "PATCH /auth/login HTTP/1.1" 200 40488 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120" 188.247.158.220 - - [28/Nov/2026:06:18:07 +0000] "PATCH /auth/login HTTP/1.1" 503 22759 "-" "axios/1.6.0" 69.202.253.40 - - [28/Nov/2026:06:37:49 +0000] "PATCH /health HTTP/1.1" 502 7527 "-" "Go-http-client/1.1" 142.88.137.246 - - [28/Nov/2026:06:35:25 +0000] "PATCH /api/v1/events HTTP/1.1" 201 40091 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120" 65.107.72.236 - - [28/Nov/2026:06:15:13 +0000] "POST /api/v1/orders HTTP/1.1" 502 864 "-" "Go-http-client/1.1" 15.245.10.216 - - [28/Nov/2026:06:37:42 +0000] "PUT /static/app.js HTTP/1.1" 404 10077 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120" 78.144.10.7 - - [28/Nov/2026:05:56:46 +0000] "PATCH /auth/login HTTP/1.1" 502 11259 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120" 19.119.115.1 - - [28/Nov/2026:06:08:02 +0000] "PUT /auth/login HTTP/1.1" 502 38439 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120"
- Example 3
147.148.39.238 - - [28/Nov/2026:06:26:03 +0000] "POST /health HTTP/1.1" 422 30074 "-" "Go-http-client/1.1" 94.156.53.158 - - [28/Nov/2026:06:51:54 +0000] "POST /api/v1/events HTTP/1.1" 403 15397 "-" "python-requests/2.31" 254.133.105.198 - - [28/Nov/2026:06:26:00 +0000] "PUT /api/v1/users HTTP/1.1" 200 36337 "-" "axios/1.6.0" 249.146.106.82 - - [28/Nov/2026:06:10:25 +0000] "POST /favicon.ico HTTP/1.1" 200 36082 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120" 238.211.159.156 - - [28/Nov/2026:05:59:26 +0000] "PUT /api/v1/products HTTP/1.1" 404 22960 "-" "python-requests/2.31" 170.88.31.148 - - [28/Nov/2026:06:48:59 +0000] "POST /api/v1/users HTTP/1.1" 500 29261 "-" "curl/7.88" 209.0.206.80 - - [28/Nov/2026:05:55:56 +0000] "DELETE /static/app.js HTTP/1.1" 502 37411 "-" "python-requests/2.31" 226.179.178.80 - - [28/Nov/2026:06:45:01 +0000] "PATCH /auth/login HTTP/1.1" 422 24507 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120" 242.111.179.141 - - [28/Nov/2026:06:15:55 +0000] "DELETE /static/app.js HTTP/1.1" 200 25277 "-" "python-requests/2.31" 68.225.161.13 - - [28/Nov/2026:06:32:08 +0000] "GET /api/v1/orders HTTP/1.1" 422 45079 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120"
About this generator
Testing a log parser, Grok pattern, or ingest pipeline against production logs is risky and often impossible due to data retention policies. Generating synthetic logs solves the problem, but only if the output looks like what your tools actually receive. This generator produces log lines in four formats that match the exact shapes real systems emit. The Log Format selector determines the output structure. Apache/Nginx access produces lines in Combined Log Format: IP address, date in day/Mon/year:HH:MM:SS +0000 format, request line (method + path + HTTP version), status code, response size, referrer, and user agent. The status code pool includes 200, 201, 204, 301, 304, 400, 401, 403, 404, 422, 500, 502, and 503 — weighted toward 200 but including errors. Application (JSON) produces structured log objects with timestamp, level (DEBUG, INFO, WARN, ERROR), message, service name, trace_id, and duration_ms. Syslog outputs RFC 3164 format with a short month-day-time prefix, hostname, program name, and PID. Python logging outputs timestamp, level padded to eight characters, dotted logger name, and message. Count goes up to 100 lines per batch. Feed Apache output to a Logstash Grok parser or Splunk access_combined sourcetype. Pipe JSON output through jq or into an Elasticsearch bulk index. Replay syslog output with the logger command against a running syslog daemon.
How to use
- Set the 'Number of lines' field to the quantity your test case requires — start with 20-50 for parser tests.
- Select the log format from the dropdown that matches your target system: Apache/Nginx, JSON, syslog, or Python.
- Click 'Generate' to produce the log lines with realistic timestamps, IPs, and status codes.
- Copy the output using the copy button and paste it directly into your log file, test fixture, or ingest pipeline.
- Re-generate as needed — each run produces fresh timestamps and randomized field values for varied test data.
Use Cases
- •Testing Grok patterns in Logstash against realistic Apache Combined Log Format entries
- •Seeding a development Elasticsearch index or Kibana dashboard with synthetic log data
- •Writing Jest or pytest unit tests for log parser field extraction and regex logic
- •Validating Splunk access_combined sourcetype field extractions before connecting real hosts
- •Simulating ERROR and CRITICAL spikes to tune PagerDuty or Alertmanager alerting rules
Tips
- →For Grok pattern development, generate 50+ Apache lines and look for status codes 404, 500, and 301 to verify your regex handles all three code families.
- →Combine JSON format output with jq to filter specific log levels: pipe the output through `jq 'select(.level=="ERROR")'` to isolate error lines instantly.
- →When building Kibana visualizations, generate 200 lines across multiple runs to create enough volume for meaningful chart distributions rather than sparse samples.
- →The Python logging format includes logger names and line numbers — test your parser handles both short names like 'app' and dotted module paths like 'app.services.auth'.
- →For syslog testing, generate lines and replay them with `logger -f yourfile.log` to inject them into your actual syslog daemon rather than just reading static files.
- →Timestamp offsets span up to one hour in the past — if your pipeline has time-based ingestion windows, verify that all generated lines fall within your acceptable lag threshold.
FAQ
how do I use fake log lines to test an Elasticsearch ingest pipeline
Select the JSON format, set your line count, and paste the output into a bulk ingest request or pipe it through Filebeat with the JSON input configuration. The field names (timestamp, level, message, service, trace_id, duration_ms) match standard Elasticsearch log document conventions, so existing index templates and ingest processors apply without modification.
do the generated logs include errors and 5xx status codes or just 200s
The generator mixes status codes and severity levels across all formats. Apache/Nginx output includes HTTP 4xx and 5xx codes from the full pool: 400, 401, 403, 404, 422, 500, 502, and 503. JSON, syslog, and Python formats include ERROR and WARN severity levels alongside INFO and DEBUG. Generate larger batches (50–100 lines) to get a representative mix of all levels.
are the IP addresses in fake log entries safe to use in test data
Yes. The IPv4 addresses are randomly generated to look realistic but are not tied to real hosts or users. They follow valid formatting and span multiple address ranges, which is useful when testing geolocation enrichment or IP-based field extraction rules in a SIEM.
what is the exact format of each log type the generator produces
Apache/Nginx uses Combined Log Format: IP - - [DD/Mon/YYYY:HH:MM:SS +0000] "METHOD /path HTTP/1.1" STATUS BYTES "-" "UserAgent". JSON produces objects with timestamp, level, message, service, trace_id, and duration_ms keys. Syslog follows RFC 3164: Mon DD HH:MM:SS hostname program[PID]: message. Python logging outputs: ISO_TIMESTAMP LEVEL logger.name - message.
You might also like
Popular tools from other categories that share themes with this one.