Learn R Programming

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.14

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Hunt

Last Published

July 29th, 2025

Functions in WebAnalytics (0.9.14)

pdfGenerate

Generate a PDF using the R API for TinyTeX
logFileNamesGetAll

Get the list of file names matching a regex (default picks .log files) from a list of 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.
plotByRate

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

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

Get list of latest files from log directories
plotErrorRateByHour

Plots rates of HTTP response code groups by hour
plotDataRateImpactOnStaticResponse

Plot static object response time against aggregate data rate
logFileNamesGetLast

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

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

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

Replacement For cut.POSIXct
plotResponseTimeScatter

Generates a scatter plot of response times
plotFrequencyHistogramOutlierCutoff

Plot frequencies of elapsed times up to a percentile cutoff
printPercentiles

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

Save a plot to a file with a generated name
plotWriteFilenameToLaTexFile

Write an includegraphic element to the generated LaTeX file
summaryTxDataFrameCreate

Creates a dataframe containing summary URL performance metrics
plotParallelismRateImpactOnResponse

Plot response time against degree of parallelism
plotFrequencyHistogram

Plot histogram of response times for a transaction dataframe
workingDirectoryPopulate

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

Prints a transaction summary table generated by summaryTxDataFrameCreate
laTeXParagraphWrite

Writes a LaTex paragraph on stdout
logFileNamesGet

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

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

calculate quantile values from a column.
configFilesDirectoryNameGet

get the path of the temporary directory used for storing work files
laTexFilePercentileComparisonsWrite

Write percentile count comparison table
WebAnalytics-package

Tools for web server log performance reporting
laTeXEscapeString

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

Read a configuration file and store the variables
logFileFieldsGetIIS

Get field names from an IIS log file