{"id":23043368,"url":"https://github.com/theodorosploumis/apache-log-generator","last_synced_at":"2025-04-03T01:28:00.896Z","repository":{"id":148079945,"uuid":"171768258","full_name":"theodorosploumis/apache-log-generator","owner":"theodorosploumis","description":"Apache2 access log generator (faker)","archived":false,"fork":false,"pushed_at":"2019-05-21T10:01:21.000Z","size":58,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T15:46:24.617Z","etag":null,"topics":["access-logs","apache-log","apache-logging","apache2","fake-generator","generator","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theodorosploumis.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":"2019-02-21T00:01:06.000Z","updated_at":"2023-03-28T21:24:39.000Z","dependencies_parsed_at":"2023-05-19T02:30:43.266Z","dependency_job_id":null,"html_url":"https://github.com/theodorosploumis/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/theodorosploumis%2Fapache-log-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodorosploumis%2Fapache-log-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodorosploumis%2Fapache-log-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodorosploumis%2Fapache-log-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theodorosploumis","download_url":"https://codeload.github.com/theodorosploumis/apache-log-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246920029,"owners_count":20855085,"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":["access-logs","apache-log","apache-logging","apache2","fake-generator","generator","php"],"created_at":"2024-12-15T20:47:19.671Z","updated_at":"2025-04-03T01:28:00.877Z","avatar_url":"https://github.com/theodorosploumis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apache2 access log generator\nA simple php file that can generate fake apache2 access log files.\n\n### Usage\nYou can add your own `.settings.php`.\n\n```\ngit clone git@github.com:theodorosploumis/apache-log-generator.git\ncd apache-log-generator\n\n```\n\nExecute using php:\n```\n// Generate date limited files starting from '19 May 2019' (timestamp '1558137601') \n// with offset '1 Day' (86400) and row limit 10k rows by file\nphp -r \"require 'index.php'; generateLogsByDates(1558137601, 86400, 10000);\"\n\n// Generate date limited files starting from 'now' (timestamp '0') \n// with offset '1 Day' and row limit 10k rows by file\nphp -r \"require 'index.php'; generateLogsByDates(0, 86400, 10000);\"\n\n```\n\n\n---\n\n### Log formats\n\nSee [apache2 mod_log_config](http://httpd.apache.org/docs/current/mod/mod_log_config.html) for more details.\n\n```\nLogFormat \"%v:%p %h %l %u %t \\\"%r\\\" %\u003es %O \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" vhost_combined\nLogFormat \"%h %l %u %t \\\"%r\\\" %\u003es %O \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" combined\nLogFormat \"%h %l %u %t \\\"%r\\\" %\u003es %O\" common\nLogFormat \"%{Referer}i -\u003e %U\" referer\nLogFormat \"%{User-agent}i\" agent\n```\n\n---\n\n### Log analyzers for security problems\n\n- [scalp](https://github.com/BalloonPlanet/apache-scalp)\n```\npython scalp/scalp.py -l logs/combined-generated-logs.log.1 --html --output ~/scalp/export\n```\n\n- [lorg](https://github.com/jensvoid/lorg)\n```\n./lorg -d phpids -i combined logs/combined-generated-logs.log.1\n```\n\n- [ryanermita/apache-logs-analyzer](https://github.com/ryanermita/apache-logs-analyzer)\n```\npython src/parse_logs.py -c get_sql_injections -F logs/combined-access.log\n```\n\n- [fhidalgo/attacks_checker](https://github.com/fhidalgo/attacks_checker)\n```\nTBD\n```\n\n- [matsuu/kataribe](https://github.com/matsuu/kataribe)\n```\ncat logs/combined-access.log | ./kataribe\n```\n\n- [retep007/webserver-log](https://github.com/retep007/webserver-log)\n```\n# Example of one file apache logs at webserver_log.conf settings file\n\n---\nreporting:\n  - Std:\n      verbose: false\nxss_level: Intelligent\nservices:\n  - Apache:\n      path: logs/combined-generated-logs.log.1\n\n```\n\n```\n// Add your settings at secutity-log.yaml\n./webserver_log -c webserver_log.conf\n```\n\n- [pobyzaarif/hansipy](https://github.com/pobyzaarif/hansipy)\n```\npython hansipy.py\n```\n\n- [nekhbet/WebForensik](https://github.com/nekhbet/WebForensik)\n```\n// For a more current version please check \"lorg\" tool above\n./webforensik.php -o html -i combined logs/combined-generated-logs.log.1\n```\n\n- [flrnull/http-logs-analyzer](https://github.com/flrnull/http-logs-analyzer)\n```\nhttp-logs-analyzer -f logs/combined-generated-logs.log.1\n```\n\n- [kzon/http-access-log-parser](https://github.com/kzon/http-access-log-parser)\n```\nphp parser.php logs/combined-generated-logs.log.1\n```\n- [tilfin/detect-http-attack](https://github.com/tilfin/detect-http-attack)\n```\n./detect-http-attack.rb -s 8 \u003c /var/log/apache/access_log\n```\n\n- [pinguinens/AnalyzeMyAccessLog](https://github.com/pinguinens/AnalyzeMyAccessLog)\n```\nphp parser.php logs/combined-generated-logs.log.1\n```\n\n- [LagrangianPoint/Apache-Access-Log-Analyzer](https://github.com/LagrangianPoint/Apache-Access-Log-Analyzer)\n```\npython access-log-analizer.py\n```\n\n- [EventLogAnalyzer](https://www.manageengine.com/products/eventlog/)\n\n---\n\n### Visualize logs examples\n\n- [request-log-analyzer](https://github.com/wvanbergen/request-log-analyzer)\n```\nrequest-log-analyzer --apache-format combined logs/combined-generated-logs.log.1\nrequest-log-analyzer --apache-format common /etc/log/all.log --output HTML --file ~/ruby-apache-log-analyzer.html\n```\n\n- [goaccess](https://goaccess.io)\n```\ngoaccess --log-format=COMBINED -o myreport.html --real-time-html -f logs/combined-generated-logs.log.1\ngoaccess -o goaccess-report.html -f ~/logs/all.log -p goaccess.conf\n```\n\n- [antirez/visitors](https://github.com/antirez/visitors)\n```\n// See examples at http://www.hping.org/visitors\n./visitors -f myreport.html logs/combined-generated-logs.log.1\n```\n\n- [cavo789/apache_logreader](https://github.com/cavo789/apache_logreader)\n\n- [kbence/logan](https://github.com/kbence/logan)\n```\nlogan\n```\n\n- [logswan](https://www.logswan.org/)\n```\nlogswan -g logs/combined-access.log\n```\n\n- [webalizer](http://www.webalizer.org)\n```\nwebalizer -c clf logs/combined-generated-logs.log.1\n```\n\n- [awstats](https://awstats.sourceforge.io)\n\n- [https://github.com/pbek/loganalyzer](https://github.com/pbek/loganalyzer)\n\n- [rory/apache-log-parser](https://github.com/rory/apache-log-parser)\n\n\n---\n\n### License\n[MIT](LICENSE) 2019\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodorosploumis%2Fapache-log-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheodorosploumis%2Fapache-log-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodorosploumis%2Fapache-log-generator/lists"}