Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Bespoke NGINX Log Parse
Open Workspace
Python
Match
Created 2023-03-28 18:17
0
Regular Expression
r'
(?P<ip>
\S
*
)
(?P<firstseperator>
-
)
(?P<userid>
\S
+
|
-
)
(?P<timestamp>
\[
\S
+
\S
+
)
"
(?P<URL>
\S
+
|
\S
+
\S
+
[
A
-
Z/0
-
9.
]
+
)
"
(?P<http_code>
[
0
-
9
]
+
)
(?P<guessing_size>
[
0
-
9
]
+
)
"
(?P<endpoint_url>
\S
+
|
-
)
"
"
(?P<client_and_version>
[
a
-
zA
-
Z/0
-
9.-
]
+
)
'
gm
Description
Splits NGINX logs into named groups
Submitted by
Simon