{"id":13813075,"url":"https://github.com/kiritbasu/Fake-Apache-Log-Generator","last_synced_at":"2025-05-14T22:31:43.691Z","repository":{"id":52549427,"uuid":"48250485","full_name":"kiritbasu/Fake-Apache-Log-Generator","owner":"kiritbasu","description":"Generate a boatload of Fake Apache Log files very quickly","archived":false,"fork":false,"pushed_at":"2024-05-09T01:50:24.000Z","size":14,"stargazers_count":281,"open_issues_count":14,"forks_count":238,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-19T07:40:35.964Z","etag":null,"topics":["apache","fake","faker","logs","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiritbasu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-18T18:36:52.000Z","updated_at":"2024-11-17T01:25:05.000Z","dependencies_parsed_at":"2024-01-13T15:37:34.794Z","dependency_job_id":"b92c59bd-27ca-4a99-b6fe-8d8a50ef0448","html_url":"https://github.com/kiritbasu/Fake-Apache-Log-Generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritbasu%2FFake-Apache-Log-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritbasu%2FFake-Apache-Log-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritbasu%2FFake-Apache-Log-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiritbasu%2FFake-Apache-Log-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiritbasu","download_url":"https://codeload.github.com/kiritbasu/Fake-Apache-Log-Generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254239679,"owners_count":22037751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","fake","faker","logs","python"],"created_at":"2024-08-04T04:01:01.815Z","updated_at":"2025-05-14T22:31:38.637Z","avatar_url":"https://github.com/kiritbasu.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Fake Apache Log Generator\n\nThis script generates a boatload of fake apache logs very quickly. Its useful for generating fake workloads for [data ingest](http://github.com/streamsets/datacollector) and/or analytics applications.\n\nIt can write log lines to console, to log files or directly to gzip files.\n\nIt utilizes the excellent [Faker](https://github.com/joke2k/faker/) library to generate realistic ip's, URI's etc.\n\n***\n\n## Basic Usage\n\nGenerate a single log line to STDOUT\n```\n$ python apache-fake-log-gen.py  \n```\n\nGenerate 100 log lines into a .log file\n```\n$ python apache-fake-log-gen.py -n 100 -o LOG \n```\n\nGenerate 100 log lines into a .gz file at intervals of 10 seconds\n```\n$ python apache-fake-log-gen.py -n 100 -o GZ -s 10\n```\n\nInfinite log file generation (useful for testing File Tail Readers)\n```\n$ python apache-fake-log-gen.py -n 0 -o LOG \n```\n\nPrefix the output filename \n```\n$ python apache-fake-log-gen.py -n 100 -o LOG -p WEB1\n```\n\n\nDetailed help\n```\n$ python apache-fake-log-gen.py -h\nusage: apache-fake-log-gen.py [-h] [--output {LOG,GZ,CONSOLE}]\n                              [--num NUM_LINES] [--prefix FILE_PREFIX]\n                              [--sleep SLEEP]\n\nFake Apache Log Generator\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --output {LOG,GZ,CONSOLE}, -o {LOG,GZ,CONSOLE}\n                        Write to a Log file, a gzip file or to STDOUT\n  --num NUM_LINES, -n NUM_LINES\n                        Number of lines to generate (0 for infinite)\n  --prefix FILE_PREFIX, -p FILE_PREFIX\n                        Prefix the output file name\n  --sleep SLEEP, -s SLEEP\n                        Sleep this long between lines (in seconds)\n```\n\n\n## Requirements\n* Python 2.7\n* ```pip install -r requirements.txt```\n\n## License\nThis script is released under the [Apache version 2](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiritbasu%2FFake-Apache-Log-Generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiritbasu%2FFake-Apache-Log-Generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiritbasu%2FFake-Apache-Log-Generator/lists"}