public
Description: Takes an Apache log and turns it into a list of URLs that were requested and an XML file for the JMeter load tester.
Homepage:
Clone URL: git://github.com/maryrosecook/logtoload.git
Mary Cook (author)
Tue Oct 27 02:37:10 -0700 2009
commit  e083b8743014c348c12cc2a022a421ad6e4f5ad0
tree    0722263c4b1a03d0016b90fb58a33544483b91f0
parent  253d724240853ef665b42b2ff63e530b72b6b54b
name age message
file .gitignore Wed Oct 07 01:59:12 -0700 2009 first [Mary Cook]
file README Wed Oct 07 07:34:34 -0700 2009 XML writer now supports URLs with params. Remo... [Mary Cook]
file log.log Loading commit data...
file main.rb
file no_params1.txt Wed Oct 07 07:34:34 -0700 2009 XML writer now supports URLs with params. Remo... [Mary Cook]
file no_params2.txt
file no_params3.txt Wed Oct 07 07:34:34 -0700 2009 XML writer now supports URLs with params. Remo... [Mary Cook]
file params1.txt Wed Oct 07 07:34:34 -0700 2009 XML writer now supports URLs with params. Remo... [Mary Cook]
file params2.txt
file params3.txt Wed Oct 07 07:34:34 -0700 2009 XML writer now supports URLs with params. Remo... [Mary Cook]
file params4.txt
file 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.