Skip to content

linuxinsights/Generating-Nginx-Access-Logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Generating-Nginx-Access-Logs

Generating Nginx Access Logs for Testing and Analysis

Usage

You can run this script with the following command:

python generate_logs.py --filename mylog.log --lines 5000

This will generate 5000 log lines in a file named mylog.log. If you omit the --filename and --lines arguments, the defaults of access.log and 2000 lines will be used.

Code Explanation on: https://linuxtech.in/generating-nginx-access-logs-for-testing-and-analysis/

Releases

No releases published

Packages

No packages published

Languages