Learn R Programming

ApacheLogProcessor (version 0.2.3)

read.apache.error.log: Read the apache erro log file and loads it to a data frame.

Description

Read the apache erro log file and loads it to a data frame.

Usage

read.apache.error.log(file, columns = c("datetime", "logLevel", "pid",
  "ip_port", "msg"))

Arguments

file

path to the error log file

columns

which columns should be loaded. Default value is all columns. c("datetime", "logLevel", "pid", "ip_port", "msg")

Value

a data frame with the error log data

Examples

Run this code
# NOT RUN {
#Loads the path of the erro log
path <- system.file("examples", "error_log.log", package = "ApacheLogProcessor")

#Loads the error log to a data frame
dfELog <- read.apache.error.log(path)

# }

Run the code above in your browser using DataLab