Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Graphing a request.log file

Graphing a request.log file requires 2 files:

  • the file as a helper library to do the actual parsing
  • the file

Although you can put the file to your perl module library, it also works if it just sits next the file.


The script creates output, which can be fed directly to the gnuplot program. It contains all relevant graphing information including the data.


the most basic usecase is something like this:

perl request.log | gnuplot 

Then you will find a file called "output.png" in the current directory.

All parameters (you can also get them using "perl --help":

  Print a graphical version of a CQ5 request.log file

  $0 [options] file ...
  --title TITLE         - the title of the output graph
  --mime MATCH          - only analyze requests which have the MATCHing mime type set (regexp allowed)
  --statuscode STATUS   - the numerical HTTP statuscode, which must match (default: all match)
  --path-match MATCH    - only analyze requests which URL does match the regular expression MATCH
  --width=WIDTH         - the width of the generated image in pixels, default is 770
  --auto                - enable auto tuning to set various settings to reasonable values
  --output FILENAME     - the name of the file where to put the resulting graph
  --help                - print this and exit

  --mime, --path-match and --statuscode are additive.

  all files are evaluated and integrated in this output

  result will be displayed on STDOUT, which you can pipe directly into gnuplot
  without any further parameters (the final image filename can be given to the --output parameter)

You can’t perform that action at this time.