Giter Site home page Giter Site logo

xuwenyihust / lunaticlog Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 2.0 5.36 MB

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

License: MIT License

Python 100.00%
apache dummy-data fake log python spike stress-testing traffic

lunaticlog's Introduction

Hi there ๐Ÿ‘‹

lunaticlog's People

Contributors

xuwenyihust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

xingzhesunn aparo

lunaticlog's Issues

Install via pip does not work

Mac OS, brew installed python3.

$ virtualenv tmp
$ cd tmp
$ source bin/activate
(tmp) $ pip3 install lunaticlog
Collecting lunaticlog
Installing collected packages: lunaticlog
Successfully installed lunaticlog-0.1.2

(tmp) $ python
Python 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import lunaticlog
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'lunaticlog'

(tmp) $ pip3 list
Package Version


lunaticlog 0.1.2
pip 19.1.1
setuptools 41.0.1
wheel 0.33.4

The distinfo is there, but not the code.
$ ls lib/python3.7/site-packages/
pycache pip-19.1.1.dist-info src
easy_install.py pkg_resources tests
lunaticlog-0.1.2.dist-info setuptools wheel
pip setuptools-41.0.1.dist-info wheel-0.33.4.dist-info

If I clone the repo into the site-packages directory, then it works. (I have to manually add numpy)
(tmp) $ pip3 install numpy
(tmp) $ cd lib/python3.7/site-packages/
(tmp) $ git clone https://github.com/xuwenyihust/lunaticlog.git
Cloning into 'lunaticlog'...
remote: Enumerating objects: 919, done.
remote: Total 919 (delta 0), reused 0 (delta 0), pack-reused 919
Receiving objects: 100% (919/919), 5.36 MiB | 3.00 MiB/s, done.
Resolving deltas: 100% (439/439), done.
(tmp) $ python
Python 3.7.2 (v3.7.2:9a3ffc0492, Dec 24 2018, 02:44:43)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import lunaticlog
>>>

Add log generator mode control.

  • normal mode - uniform distribution between interval min & max
  • spike mode - generate periodic spikes
  • push mode - generate logs at highest rate (min interval assigned)

Prototype

Write a prototype to achive the main functionality: generate fake apache logs.

Add configuration file.

Add a configuration file to configure the Apache access line:

  • user_id
  • method
  • resource
  • version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.