Skip to content
Takes an Apache log and turns it into a list of URLs that were requested and an XML file for the JMeter load tester.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README
log.log
main.rb
no_params1.txt
no_params2.txt
no_params3.txt
params1.txt
params2.txt
params3.txt
params4.txt
params5.txt

README

logtoload

Takes an Apache log and turns it into:
	1. A list of URLs that were requested.
	2. An XML file that can be used in the JMeter load tester.

By maryrosecook for the OTHER media

----

Quick run: ruby main.rb "log.log" "urls.txt" "load_test.xml"

The script takes four command-line arguments:

- filename for input log file (string, not nil)
- filename for url list (string, or nil to not write file)
- filename for load test xml (string, or nil to not write file)

Note that the script outputs twenty to thirty lines of XML per URL,
so you might want to limit the log files you feed in to a few hundred unique URLs.
Something went wrong with that request. Please try again.