class HAProxyLogParser::Entry

An instance of this class represents a line/entry of an HAProxy log in the HTTP format. See the “Logging > Log formats > HTTP log format” section in HAProxy's configuration.txt for documentation of fields/attributes.

Attributes

accept_date[RW]

@return [Time]

actconn[RW]

@return [Integer]

backend_name[RW]

@return [String]

backend_queue[RW]

@return [Integer]

beconn[RW]

@return [Integer]

bytes_read[RW]

@return [Integer]

captured_request_headers[RW]

@return [Array<String>]

captured_response_headers[RW]

@return [Array<String>]

client_ip[RW]

@return [String]

client_port[RW]

@return [Integer]

feconn[RW]

@return [Integer]

frontend_name[RW]

@return [String]

http_request[RW]

@return [String]

retries[RW]

@return [Integer]

server_name[RW]

@return [String]

srv_conn[RW]

@return [Integer]

srv_queue[RW]

@return [Integer]

status_code[RW]

@return [Integer]

tc[RW]

@return [Integer]

termination_state[RW]

@return [String]

tq[RW]

@return [Integer]

tr[RW]

@return [Integer]

transport_mode[RW]

@return [String]

'~' if SSL, '' otherwise (HAProxy 1.5 adds a '~' suffix to the frontend
name if request went through SSL)
tt[RW]

@return [Integer]

tw[RW]

@return [Integer]

Public Instance Methods

ssl?() click to toggle source

return [Boolean] true if and only if request was SSL

# File lib/haproxy_log_parser/entry.rb, line 90
def ssl?
  @transport_mode == '~'
end