We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f10541b + db93f4b commit 5482a3dCopy full SHA for 5482a3d
lib/fluent/plugin/parser_apache2.rb
@@ -21,7 +21,7 @@ module Plugin
21
class Apache2Parser < Parser
22
Plugin.register_parser('apache2', self)
23
24
- REGEXP = /^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>(?:[^\"]|\\.)*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>(?:[^\"]|\\.)*)" "(?<agent>(?:[^\"]|\\.)*)")?$/
+ REGEXP = /^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>(?:[^\"]|\\")*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>(?:[^\"]|\\")*)" "(?<agent>(?:[^\"]|\\")*)")?$/
25
TIME_FORMAT = "%d/%b/%Y:%H:%M:%S %z"
26
27
def initialize
0 commit comments