Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^\[(?P<thread_name>\w+\-\d+)\]\s\d\d\d\d\-\d\d\-\d\d\s\d\d:\d\d:\d\d\s\[(?P<request_id>[^,]+),(?P<global_partner_code>[^,]+),(?P<plf_code>[^,]+),(?P<request_type>[^,]+),(?P<product_type>[^,]+),\d\d\-\d\d\-\d\d\d\d\s\d\d:\d\d:\d\d,(?P<server_name>[^,]+),(?P<check_in_date>[^ ]+)\s00:00:00,(?P<check_out_date>[^ ]+)\s00:00:00,(?P<requested_currency_code>[^,]+),(?P<requested_language_code>[^,]+),(?P<error_code>[^,]+),(?P<error_desc>[^,]+),(?P<gds_processing_time>\d+),(?P<total_processing_time>\d+),(?P<pre_gds_processing_time>\d+),(?P<post_gds_processing_time>\d+),(?P<post_processing_time>\d+),(?P<response_time>\d+),(?P<property_count>\d+),(?P<opaque_rate_request_count>\d+),(?P<merchant_rate_request_count>\d+),(?P<agency_rate_request_count>\d+),(?P<cached_rate_request_count>\d+),(?P<avail_request_count>\d+),(?P<rule_request_count>\d+),(?P<on_time_request_count>\d+),(?P<late_request_count>\d+),(?P<timeout_request_count>\d+),(?P<cache_read_time>\d+),(?P<cache_update_time>\d+),(?P<business_processing_time>\d+)\]
/

Description

For parsing the events from the RHSE searchstats log file

Submitted by Will - 9 years ago