Skip to content

Commit

Permalink
重命名日志分析脚本log_analyse.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ljk committed Jan 19, 2018
1 parent 1254535 commit 54be268
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyse_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ----日志格式
# 利用非贪婪匹配和分组匹配, 需要严格参照日志定义中的分隔符和引号
# 利用非贪婪匹配和分组匹配, 需要严格参照日志定义中的分隔符和引号(编写正则时,先不要换行,确保空格或引号与日志格式一致,最后考虑美观可以折行)
log_pattern = r'^(?P<remote_addr>.*?) - \[(?P<time_local>.*?) \+0800\] "(?P<request>.*?)"' \
r' (?P<status>.*?) (?P<body_bytes_sent>.*?) (?P<request_time>.*?)' \
r' "(?P<http_referer>.*?)" "(?P<http_user_agent>.*?)" - (?P<http_x_forwarded_for>.*)$'
Expand Down
File renamed without changes.

0 comments on commit 54be268

Please sign in to comment.