Learn R Programming

ApacheLogProcessor (version 0.2.3)

get.url.params: Extract from the data frame with the access log the urls query strings parameters and values.

Description

The function supports multivalued parameters, but does not support parameters inside urls yet.

Usage

get.url.params(dfLog)

Arguments

dfLog

a dataframe with the access log. Can be load with read.apache.access.log or read.multiple.apache.access.log.

Value

a structure of data frames with query strings parameters for each url of the log

Examples

Run this code
# NOT RUN {
#Load a log which the urls have query strings
path = system.file("examples", "access_log_with_query_string.log", package = "ApacheLogProcessor")

#Read a log file with combined format and return it in a data frame
df = read.apache.access.log(path, format = "common")

#Clear the urls with parameters inside
params <- get.url.params(df)

# }

Run the code above in your browser using DataLab