Code Monkey home page Code Monkey logo

loggen's Introduction

loggen

Write fake web access logs to stdout (at 1 sec interval with jitter):

$ go run main.go
78.21.94.134 - - [12/02/2024:09:49:57] "GET / HTTP/1.1" 200 162 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0"
78.21.94.132 - - [12/02/2024:09:49:59] "GET /about HTTP/1.1" 301 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
78.21.94.130 - - [12/02/2024:09:50:01] "POST /api/v1/users HTTP/1.1" 200 162 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0"
13.250.24.4 - - [12/02/2024:09:50:02] "GET /settings HTTP/1.1" 200 162 "-" "Mozilla/5.0 (iPhone13,2; U; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/15E148 Safari/602.1"
25.1.4.135 - - [12/02/2024:09:50:04] "GET /api/v1/settings HTTP/1.1" 200 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
25.1.4.142 - - [12/02/2024:09:50:05] "GET / HTTP/1.1" 403 162 "-" "Mozilla/5.0 (compatible; YandexAccessibilityBot/3.0; +http://yandex.com/bots)"
123.25.44.8 - - [12/02/2024:09:50:06] "POST /api/v1/settings HTTP/1.1" 403 162 "-" "curl/8.4.0"
123.25.44.14 - - [12/02/2024:09:50:06] "GET / HTTP/1.1" 403 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246"
13.250.24.6 - - [12/02/2024:09:50:08] "GET / HTTP/1.1" 200 162 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9"
123.25.44.12 - - [12/02/2024:09:50:08] "GET /api/v1/settings HTTP/1.1" 200 162 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9"
13.250.24.14 - - [12/02/2024:09:50:10] "GET / HTTP/1.1" 200 162 "-" "curl/8.4.0"
123.25.44.8 - - [12/02/2024:09:50:11] "POST /api/v1/settings HTTP/1.1" 200 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246"
123.25.44.7 - - [12/02/2024:09:50:12] "GET /api/v1/settings HTTP/1.1" 200 162 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36"
78.21.94.135 - - [12/02/2024:09:50:14] "POST /api/v1/users HTTP/1.1" 200 162 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0"

Develop

git clone github.com/kubetail-org/loggen
cd loggen
go run main.go

Build

docker build -t loggen:latest .

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.