read_elb: Load an ELB log file

Description Usage Arguments Value

Description

Load an ELB log file

Usage

1
2
3
4
5
read_elb(file, columns = c("timestamp", "elb", "client_port", "backend_port",
  "request_processing_time", "backend_processing_time",
  "response_processing_time", "elb_status_code", "backend_status_code",
  "received_bytes", "sent_bytes", "request", "user_agent", "ssl_cipher",
  "ssl_protocol"), line_filter = NULL, ...)

Arguments

file

A file name or connection. See readr::read_delim()

columns

Optional character vector to specify a subset of columns to import. If you know you only want to work with a few columns, it is faster to specify it at read time rather than filtering after. Unlike the behavior of read_delim()'s col_names, these may be specified out of order, and the data.frame you get back will be in the order you specify.

Default is to return everything.

line_filter

A string pattern or regular expression to pass to the shell command egrep. This enables you to filter down the rows of the log file to read in much more quickly than reading the whole file into R and then subsetting the data in memory—if you know a good filtering string to use. It is best only to use this parameter if you're looking for a relatively uncommon pattern; if your line_filter matches all lines, it will be slower than omitting it.

...

Additional arguments passed to readr::read_delim()

Value

A tibble.


nealrichardson/elbr documentation built on May 5, 2019, 9:20 a.m.