Generate fake logs in different format

Fake logs

This application don't do anything but generating random logs!

How to use it

Build locally

$ git clone https://github.com/saphoooo/fake-logs-app.git
$ cd fake-logs-app
$ go build
$ ./fake-logs-app

By default, it will produce a custom log every 5 seconds:

[INFO] 2021/11/25 16:40:00 172.17.0.4 POST http://example.com/status 200 -- 106.26.105.79 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15

However, you can change this behavior with args:

$ ./fake-logs-app -h
Usage of ./fake-logs-app:
  -f int
    	log frequency in second (default 5)
  -o string
    	log format syle (nginx|custom) (default "custom")
$ ./fake-logs-app -f 1 -o nginx
172.17.0.3 - - [2021/11/25:16:40:10 +0000] "PUT /api HTTP/1.1" 200 621 "http://example.com/" "curl/7.74.0" "89.77.53.67"
172.17.0.3 - - [2021/11/25:16:40:12 +0000] "POST /logout HTTP/1.1" 200 364 "http://example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" "89.121.60.251"
172.17.0.3 - - [2021/11/25:16:40:14 +0000] "GET /api HTTP/1.1" 301 200 "http://example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" "251.219.14.168"
172.17.0.3 - - [2021/11/25:16:40:16 +0000] "GET /status HTTP/1.1" 200 821 "http://example.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36" "242.48.39.127"

Docker|Podman

$ docker run saphoooo/fake-logs-app

Kubernetes

There is an example deployment.yaml file with two containers and different options:

containers:
- name: custom
  image: saphoooo/fake-logs-app:latest
  command: ['/fake-logs-app']
  args: ['-f', '1']
- name: nginx
  image: saphoooo/fake-logs-app:latest
  command: ['/fake-logs-app']
  args: ['-o', 'nginx', '-f', '2']
Owner
"The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing!" Mr. Robot
null
Similar Resources

Command line tool for processing client transaction data in CSV format

command line tool for processing client transaction data in CSV format. thank you for looking! build instructions: $ git clone https://github.com/lnit

Oct 29, 2021

Make Link with Markdown Format

Make Link with Markdown Format

ml -- Make Link with Markdown Format This package is required Go 1.16 or later. Build and Install $ go install github.com/spiegel-im-spiegel/gpgpdump@

Mar 20, 2022

Command line tool for time tracking in a human-readable file format.

klog klog is a plain-text file format and a command line tool for time tracking. ๐Ÿ“• Documentation โ€“ Learn how to use klog ๐Ÿ“ฅ Download โ€“ Get the latest

Jan 4, 2023

Golang parser for Intuit Interchange Format (.IIF) files

Intuit Interchange Format (.IIF) Parser Install go get github.com/joshuaslate/iif Usage iiifile, err := os.Open("./transactions.iif") if err != nil {

Jan 15, 2022

Determine the end-of-line format, tabs, bom, and nul characters

eol Determine the end-of-line format, tabs, bom, and nul characters Pass wildcard filename globs on the command line Download Binaries for Windows, Ma

Jan 16, 2022

Determine the end-of-line format, tabs, bom, and nul characters

chars Determine the end-of-line format, tabs, bom, and nul characters Download Binaries for Windows, MacOS, Linux and FreeBSD are provided on the rele

Oct 18, 2022

A simple command line functionality to convert your Kaspersky Password Manager exported file to CSV format

A simple command line functionality to convert your Kaspersky Password Manager exported file to CSV format

Apr 20, 2022

archy is an static binary to determine current kernel and machine architecture, with backwards compatible flags to uname, and offers alternative output format of Go runtime (i.e. GOOS, GOARCH).

archy archy is an simple binary to determine current kernel and machine architecture, which wraps uname and alternatively can read from Go runtime std

Mar 18, 2022

Generate flags by parsing structures

Flags based on structures. The sflags package uses structs, reflection and struct field tags to allow you specify command line options. It supports di

Nov 24, 2022
Minutes is a CLI tool for synchronizing work logs between multiple time trackers, invoicing, and bookkeeping software to make entrepreneurs' daily work easier.
Minutes is a CLI tool for synchronizing work logs between multiple time trackers, invoicing, and bookkeeping software to make entrepreneurs' daily work easier.

Minutes is a CLI tool for synchronizing work logs between multiple time trackers, invoicing, and bookkeeping software to make entrepreneurs' daily work easier.

Aug 8, 2022
Golang package with functionality to add colors to your logs to the terminal.
Golang package with functionality to add colors to your logs to the terminal.

colrz It's a set of funcs and constants to provide basic colors to your terminal app. How to use Get it go get github.com/unnamedxaer/colrz Use it pac

Sep 15, 2022
A CLI tool for working with CloudWatch logs. It performs functions that I need at work.

CloudWatch Logs Utility A simple utility for working with CloudWatch Logs. AWS should probably build this themselves, but since they won't, I am here

Dec 31, 2021
Rclone ("rsync for cloud storage") is a command line program to sync files and directories to and from different cloud storage providers.
Rclone (

Rclone ("rsync for cloud storage") is a command line program to sync files and directories to and from different cloud storage providers.

Jan 5, 2023
minectl ๐Ÿ—บ is a cli for creating Minecraft (java or bedrock) server on different cloud provider.

minectl ?? minectl๏ธ๏ธ is a cli for creating Minecraft (java or bedrock) server on different cloud provider. It is a private side project of me, to lear

Jan 3, 2023
Rclone ("rsync for cloud storage") is a command-line program to sync files and directories to and from different cloud storage providers.
Rclone (

Website | Documentation | Download | Contributing | Changelog | Installation | Forum Rclone Rclone ("rsync for cloud storage") is a command-line progr

Nov 5, 2021
all-in-one cmd tool to search man page of different platform

Overview remote-man is an all-in-one cmd tool to search man page of different platform. support search platform Linux MacOS FreeBSD Installation compi

Oct 31, 2022
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal.
Stonks is a terminal based stock visualizer and tracker that displays realtime stocks in graph format in a terminal.

Stonks is a terminal based stock visualizer and tracker. Installation Requirements: golang >= 1.13 Manual Clone the repo Run make && make install Pack

Dec 16, 2022
PretGO - asic cli for format json,html and xml!
 PretGO - asic cli for format json,html and xml!

PretGO So basic cli for format json,html and xml! Table of contents Screenshots Setup Status Contact Screenshots Setup First clone project git clone h

Sep 2, 2022
๐Ÿ“ Easily format yaml files on terminal or your editor

YAMLFMT A simple and extensible yaml formatter. Installation go install github.com/UltiRequiem/yamlfmt@latest Make sure your $PATH includes the $GOPAT

Oct 31, 2022