Class: RequestLogAnalyzer::FileFormat::Oink

Inherits:
Rails
  • Object
show all
Defined in:
lib/request_log_analyzer/file_format/oink.rb

Defined Under Namespace

Classes: Request

Constant Summary collapse

HODEL3000_PROCESSING =

capture the PID

/\[(\d+)\]: Processing ((?:\w+::)*\w+)#(\w+)(?: to (\w+))? \(for (#{ip_address}) at (#{timestamp('%Y-%m-%d %H:%M:%S')})\) \[([A-Z]+)\]/

Constants inherited from Rails

Rails::LINE_COLLECTIONS, Rails::LINE_DEFINITIONS, Rails::RAILS_21_COMPLETED, Rails::RAILS_22_COMPLETED, Rails::REQUEST_CATEGORIZER

Constants included from CommonRegularExpressions

CommonRegularExpressions::TIMESTAMP_PARTS

Constants inherited from Base

Base::Request

Instance Attribute Summary

Attributes inherited from Base

#line_definitions, #report_trackers

Instance Method Summary collapse

Methods inherited from Rails

create, report_trackers

Methods included from CommonRegularExpressions

#anchored, #hostname, #hostname_or_ip_address, #ip_address, #timestamp

Methods inherited from Base

#captures?, create, format_definition, #initialize, line_definer, line_definition, #line_divider, #max_line_length, #parse_line, report, report_definer, #request, #request_class, #setup_environment, #valid_line_definitions?, #valid_request_class?, #well_formed?

Methods included from ClassLevelInheritableAttributes

#inheritable_attributes, #inherited

Constructor Details

This class inherits a constructor from RequestLogAnalyzer::FileFormat::Base

Instance Method Details

#pidsObject

Keep a record of PIDs and their memory usage when validating requests.



41
42
43
# File 'lib/request_log_analyzer/file_format/oink.rb', line 41

def pids
  @pids ||= {}
end