Regular Expressions 101

Community Patterns

brightblue swift syslog

0

Regular Expression
Python

r"""
.{16} (?P<server>[\w.-]+)\s (?P<servertype>[^:]+):\s (?P<clientip>[\d.]+|-)\s (?P<clientip_2>[\d.]+|-)\s (?P<timestamp>.+?)\s (?P<http_action>.+?)\s (?P<path>.+?)\s HTTP/(?:[0-9\.]+)\s (?P<status>\d+)\s (?P<huh3>.+?)\s #(?P<huh4>\d+)\s (?P<encoded_user_agent>\S+?)\s (?P<huh41>.+?)\s (?P<huh5>\S+)\s (?P<huh6>\S+)\s (?P<huh7>\S+)\s (?P<tx>\S+)\s (?P<huh8>\S+) (?P<ms>[\d.]+)\s (?:\S+)\s (?:\S+)\s (?P<blocktime>[\d.]+)\s (?P<blocktime2>[\d.]+)\s \S+
"""
x

Description

no description available

Submitted by anonymous - 4 years ago