All Projects → xuwenyihust → lunaticlog

xuwenyihust / lunaticlog

Licence: MIT License
Fake HTTP log generator module, test if your monitor system can survive under the log spikes.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to lunaticlog

traffic analyser
Retrieve useful information from apache/nginx access logs to help troubleshoot traffic related problems
Stars: ✭ 44 (+25.71%)
Mutual labels:  log, apache, traffic
Kataribe
Access log profiler based on response time
Stars: ✭ 298 (+751.43%)
Mutual labels:  log, apache
Fake Apache Log Generator
Generate a boatload of Fake Apache Log files very quickly
Stars: ✭ 207 (+491.43%)
Mutual labels:  apache, fake
dummy-products-api
An api to fetch dummy e-commerce product 👕 👗 👖 👚 JSON data with placeholder images.
Stars: ✭ 102 (+191.43%)
Mutual labels:  fake, dummy-data
Flog
🎩 A fake log generator for common log formats
Stars: ✭ 531 (+1417.14%)
Mutual labels:  log, apache
analog-ce
Analog CE
Stars: ✭ 14 (-60%)
Mutual labels:  log, apache
doom-console-log
🕹️ DOOM rendered via console.log() in a web browser.
Stars: ✭ 19 (-45.71%)
Mutual labels:  log
SmartTrafficIntersection
Another AI toy project, of a traffic intersection controlled by a Reinforcement Learning AI agent to optimize traffic flow in an intersection of vehicles or pedestrians
Stars: ✭ 30 (-14.29%)
Mutual labels:  traffic
blog
blog entries
Stars: ✭ 39 (+11.43%)
Mutual labels:  apache
mod auth radius
The FreeRADIUS Apache module for RADIUS authentication
Stars: ✭ 35 (+0%)
Mutual labels:  apache
hereR
R package that provides an interface to the HERE REST APIs: Geocoder API, Routing API, Traffic API, Public Transit API and Destination Weather API. Locations and routes are returned as 'sf' objects.
Stars: ✭ 72 (+105.71%)
Mutual labels:  traffic
gxlog
A concise, functional, flexible and extensible logger for go.
Stars: ✭ 65 (+85.71%)
Mutual labels:  log
Serilog.Sinks.MicrosoftTeams.Alternative
Serilog.Sinks.MicrosoftTeams.Alternative is a library to save logging information from Serilog to Microsoft Teams.
Stars: ✭ 21 (-40%)
Mutual labels:  log
Raven-Storm
Raven-Storm is a powerful DDoS toolkit for penetration tests, including attacks for several protocols written in python. Takedown many connections using several exotic and classic protocols.
Stars: ✭ 235 (+571.43%)
Mutual labels:  stress-testing
jog
Command line tool to view structured(JSON) log like 'tail -f', with filtering by log level and time range
Stars: ✭ 16 (-54.29%)
Mutual labels:  log
LoadRunner
Load-testing framework for writing load/stress test scenarios in c#
Stars: ✭ 18 (-48.57%)
Mutual labels:  stress-testing
esp-logger
An Arduino library providing a minimal interface to log data on flash memory and SD cards with ESP8266 and ESP32
Stars: ✭ 40 (+14.29%)
Mutual labels:  log
FakeUrlBar
A new trick to fake your address bar
Stars: ✭ 13 (-62.86%)
Mutual labels:  fake
ErRabbit
Remote logging console server using Log4j. Visual exception stackTrace log view.
Stars: ✭ 48 (+37.14%)
Mutual labels:  log
tomcter
😹 Tomcter is a python tool developed to bruteforce Apache Tomcat manager login with Apache Tomcat default credentials.
Stars: ✭ 18 (-48.57%)
Mutual labels:  apache

Python PyPI version Travis Coverage Status Percentage of issues still open license

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).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].