Regular Expressions 101

Community Patterns

PIX-6-302013 (Built inbound/outbound TCP connections)

0

Regular Expression
PCRE (PHP <7.3)

/
(?P<Timestamp>\b(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d+\s+\d+:\d+:\d+)\b\s+(?P<FW_ip_addr>\d+\.\d+\.\d+\.\d+)\s+(?P<Event_id>%\w+-\d+-\d+):\s+(?P<Event_message>Built (inbound|outbound) TCP connection \d+ for)\s+(?P<External_IP>.*)\s+to\s+(?P<Internal_IP>.*)
/
g

Description

Updated Version

Submitted by anonymous - 7 years ago