

GitHub - xuwenyihust/lunaticlog: Fake HTTP log generator module, test if your mo...
source link: https://github.com/xuwenyihust/lunaticlog
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Lunaticlog: Fake Log Generator - Read The Docs
Lunaticlog is a mock HTTP log generator package, use it's fake log workloads to test if your monitor / analyzer can survive various extreme conditions.
Documentation
Lunaticlog's documentation can be found on https://xuwenyihust.github.io/lunaticlog/lunaticlog/html/.
Overview
Lunaticlog can generate logs with customized contents. The log traffic can also be configured.
Supported Log Format
What kinds of log formats does it support now?
-
Apache Access Log
127.0.0.1 user-identifier frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
-
[TODO] Nginx Access Log
123.65.150.10 - - [23/Aug/2010:03:50:59 +0000] "POST /wordpress3/wp-admin/admin-ajax.php HTTP/1.1" 200 2 "http://www.example.com/wordpress3/wp-admin/post-new.php" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.25 Safari/534.3"
-
[TODO] Amazon S3 Log
79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be mybucket [06/Feb/2014:00:00:38 +0000] 192.0.2.3 79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be 3E57427F3EXAMPLE REST.GET.VERSIONING - "GET /mybucket?versioning HTTP/1.1" 200 - 113 - 7 - "-" "S3Console/0.4" -
Log Rotation
Set attribute rotation_size
to rotate logs when current log file achieves the max size.
Log Generation Mode
The fate of lunaticlog is to create chaos to test your system. So it needs to generate various extreme cases, such as sudden traffic spikes.
What traffic modes are supported now?
-
uniform
Generate logs at a random rate, which is uniformly distributed.
-
push
Generate logs at highest speed(which can be configured).
-
spike
Generate logs at sudden very high rates periodically.
The scripts to plot these bandwidth charts can be found under ./scripts
.
Output Formats
-
STDOUT
-
.log
file -
.gz
file
Install
pip install lunaticlog
Usage Example
apache_gen Class
Instantiation
from lunaticlog import apache_gen log_gen = apache_gen(out_path='./apache.log', mode='uniform', rotation=True) log_gen.run()
Arguments
-
out_path
: path of output logs -
out_format
: format of output logs -
mode
: log traffic mode
License
See the LICENSE file for license rights and limitations (MIT).
Recommend
-
162
Faker Faker is a PHP library that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service,...
-
47
idc/ps4-fake-405 master
-
53
Log Fake is a drop-in fake logger for testing with the Laravel framework by Tim MacDonald ( @timacdonald ). The Log fake package gives you the ability to fake the logger in...
-
9
FaPro Free,Cross-platform,Single-file mass network protocol server simulator 中文Readme Description FaPro is a Fake Proto...
-
17
Faker Generate massive amounts of fake data in the browser and node.js. FAQ - What happened to the original faker.js? This project was originally created and hosted at http...
-
22
http://http://http://@http://http://?http://#http:// | daniel.haxx.se
-
8
Mock Protobuf A command-line tool to mock protobuf! Table of Contents Install It’s handy to just use npm to install this tool: npm i mock-pb-cli@l...
-
6
March 16, 2023 • 7 minute readTracking the Fake GitHub Star Black Market with Dagster, dbt and BigQueryIt's easy for an open-source project to buy fake GitHub stars. We share two approaches for detecting them.
-
6
Tracking the Fake GitHub Star Black Market I...
-
5
Fake GitHub Star 的生意 昨天在 Hacker News 首頁上看到「
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK