Learn R Programming

⚠️There's a newer version (0.9.14) of this package.Take me there.

WebAnalytics

WebAnalytics - web log performance, scalability and workload analysis - https://CRAN.R-project.org/package=WebAnalytics

The WebAnalytics package is a simple, low-impact way of getting detailed insights into the performance of a web application and of identifying opportunities for remediation. It generates detailed analytical reports on application response time from web server logs.

The objective of the package is to extract the maximum value from web server log data and to use that information to identify problems and potential areas for remediation. It enables you to easily read web server log files; generate histograms, scatter plots and tabular reports of response times, overall and per URL; to generate some diagnostic plots; and to generate a LATEX document that can then be formatted as a PDF. The package supplies scripts and templates to do that document generation.

It is not a debugging tool, it indicates where problems are and where there are behaviours that are unexpected: the tables and histograms identifying multiple code paths that developers may not be aware of, the diagnostic plots indicating contention, the scatter plots indicating short term variations in response time that are indicative of some kind of problem. All these enable potential fixes to be worked on, and once those fixes are developed, enabling direct measurement of the impact using the baselining graphs and tables.

Copy Link

Version

Install

install.packages('WebAnalytics')

Monthly Downloads

452

Version

0.9.13

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Hunt

Last Published

July 22nd, 2025

Functions in WebAnalytics (0.9.13)

plotDataRateImpactOnResponse

Get list of latest files from log directories
logFileNamesGetLastMatching

Get lexically last file names from a list of log directories, checking that the file names are the same in all directories.
plotDataRateImpactOnStaticResponse

Plot static object response time against aggregate data rate
percentileBaselinePrint

Print a LaTeX table comparing current and baseline values and return a bar graph of the same data
logFileNamesGetAll

Get the list of file names matching a regex (default picks .log files) from a list of log directories
plotErrorRateByHour

Plots rates of HTTP response code groups by hour
logFileNamesGetLast

Get lexically last file names from a list of log directories.
pdfGenerate

Generate a PDF using the R API for TinyTeX
logFileRead

Given a list of file names, read them as log files
posixctCut

Replacement For cut.POSIXct
plotByRate

Generates a plot that compares how percentile values in a metric of interest vary as an underlying rate metric changes.
plotParallelismRateImpactOnResponse

Plot response time against degree of parallelism
summaryTxDataFrameCreate

Creates a dataframe containing summary URL performance metrics
plotResponseTimeScatter

Generates a scatter plot of response times
summaryTxTablePrint

Prints a transaction summary table generated by summaryTxDataFrameCreate
workingDirectoryPopulate

Create files in the working directory to be used for report generation
plotFrequencyHistogramOutlierCutoff

Plot frequencies of elapsed times up to a percentile cutoff
printPercentiles

calculate quantile values from a column and print as an xtable vertically
plotWriteFilenameToLaTexFile

Write an includegraphic element to the generated LaTeX file
plotFrequencyHistogram

Plot histogram of response times for a transaction dataframe
plotTransactionRateImpactOnDynamicContentResponse

Generate a plot of mean transaction rate by interval against dynamic content response
plotSave

Save a plot to a file with a generated name
logFileFieldsGetIIS

Get field names from an IIS log file
logFileListRead

Given a list of file names, read them as log files
laTeXParagraphWrite

Writes a LaTex paragraph on stdout
calculatePercentiles

calculate quantile values from a column.
logFileNamesGet

Base function for retrieval of file names from a base directory and a list of data directories
laTexFilePercentileComparisonsWrite

Write percentile count comparison table
configVariablesLoad

Read a configuration file and store the variables
configFilesDirectoryNameGet

get the path of the temporary directory used for storing work files
WebAnalytics-package

Tools for web server log performance reporting
laTeXEscapeString

Escapes a string to enable it to be embedded in a LaTeX document