Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
34faec2c
Commit
34faec2c
authored
May 16, 2013
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support log parameters used in apache_frontend
parent
e87930be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
apachedex/__init__.py
apachedex/__init__.py
+3
-0
No files found.
apachedex/__init__.py
View file @
34faec2c
...
@@ -768,6 +768,7 @@ server_name_group_dict = {
...
@@ -768,6 +768,7 @@ server_name_group_dict = {
logformat_dict
=
{
logformat_dict
=
{
'%h'
:
r'(?P<host>[^ ]*)'
,
'%h'
:
r'(?P<host>[^ ]*)'
,
'%b'
:
r'(?P<bytes>[0-9-]*?)'
,
'%l'
:
r'(?P<ident>[^ ]*)'
,
'%l'
:
r'(?P<ident>[^ ]*)'
,
'%u'
:
r'(?P<user>[^ ]*)'
,
'%u'
:
r'(?P<user>[^ ]*)'
,
'%t'
:
r'\
[(?P<
timestamp>[^\
]]*)
\]'
,
'%t'
:
r'\
[(?P<
timestamp>[^\
]]*)
\]'
,
...
@@ -775,6 +776,7 @@ logformat_dict = {
...
@@ -775,6 +776,7 @@ logformat_dict = {
'%>s'
:
r'(?P<status>[0-9]*?)'
,
'%>s'
:
r'(?P<status>[0-9]*?)'
,
'%O'
:
r'(?P<size>[0-9-]*?)'
,
'%O'
:
r'(?P<size>[0-9-]*?)'
,
'%{Referer}i'
:
r'(?P<referer>[^"]*)'
,
# XXX: expected to be enclosed in "
'%{Referer}i'
:
r'(?P<referer>[^"]*)'
,
# XXX: expected to be enclosed in "
'%{REMOTE_USER}i'
:
r'(?P<remote_user>[^"]*)'
,
# XXX: expected to be enclosed in "
'%{User-Agent}i'
:
r'(?P<agent>[^"]*)'
,
# XXX: expected to be enclosed in "
'%{User-Agent}i'
:
r'(?P<agent>[^"]*)'
,
# XXX: expected to be enclosed in "
DURATION_US_FORMAT
:
r'(?P<duration>[0-9]*)'
,
DURATION_US_FORMAT
:
r'(?P<duration>[0-9]*)'
,
DURATION_S_FORMAT
:
r'(?P<duration_s>[0-9]*)'
,
DURATION_S_FORMAT
:
r'(?P<duration_s>[0-9]*)'
,
...
@@ -789,6 +791,7 @@ expensive_logformat_dict = {
...
@@ -789,6 +791,7 @@ expensive_logformat_dict = {
'%r'
:
r'(?P<request>(\\.|[^\\"])*)'
,
'%r'
:
r'(?P<request>(\\.|[^\\"])*)'
,
'%{Referer}i'
:
r'(?P<referer>(\\.|[^\\"])*)'
,
'%{Referer}i'
:
r'(?P<referer>(\\.|[^\\"])*)'
,
'%{User-Agent}i'
:
r'(?P<agent>(\\.|[^\\"])*)'
,
'%{User-Agent}i'
:
r'(?P<agent>(\\.|[^\\"])*)'
,
'%{REMOTE_USER}i'
:
r'(?P<remote_user>(\\.|[^\\"])*)'
,
}
}
REQUEST_PATTERN
=
re
.
compile
(
'(?P<method>[^ ]*) (?P<url>[^ ]*)'
REQUEST_PATTERN
=
re
.
compile
(
'(?P<method>[^ ]*) (?P<url>[^ ]*)'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment