Regular Expressions 101

Community Patterns

Non-prod Application Log Regex

1

Regular Expression
PCRE (PHP <7.3)

/
^(?<hostip>[^ ]+) - - \[(?<timestamp>[^ ]+)\s-(?<unknown1>\d+)] "(?<method>[^ ]+) (?<request>[^ ]+) HTTP\/\d\.\d" (?<response>\d+) - (?<bytes>\d+)
/

Description

no description available

Submitted by Aditya Bindra - 9 years ago