File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ HTTPDERROR_DATE %{DAY} %{MONTH} %{MONTHDAY} %{TIME} %{YEAR}
3
3
4
4
# Log formats
5
5
HTTPD_COMMONLOG %{IPORHOST:clientip} (?:-|%{HTTPDUSER:ident}) (?:-|%{HTTPDUSER:auth}) \[%{HTTPDATE:timestamp}\] "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})" (?:-|%{NUMBER:response}) (?:-|%{NUMBER:bytes})
6
- HTTPD_COMBINEDLOG %{HTTPD_COMMONLOG} %{QS :referrer} %{QS :agent}
6
+ HTTPD_COMBINEDLOG %{HTTPD_COMMONLOG} "(?:-|%{DATA :referrer})" "(?:-|%{DATA :agent})"
7
7
8
8
# Error logs
9
9
HTTPD20_ERRORLOG \[%{HTTPDERROR_DATE:timestamp}\] \[%{LOGLEVEL:loglevel}\] (?:\[client %{IPORHOST:clientip}\] ){0,1}%{GREEDYDATA:message}
Original file line number Diff line number Diff line change 19
19
'httpversion' => '1.1' ,
20
20
'response' => '200' ,
21
21
'bytes' => '203023' ,
22
- 'referrer' => '" http://semicomplete.com/presentations/logstash-monitorama-2013/" ' ,
23
- 'agent' => '" Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36" '
22
+ 'referrer' => 'http://semicomplete.com/presentations/logstash-monitorama-2013/' ,
23
+ 'agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36'
24
24
)
25
25
end
26
26
You can’t perform that action at this time.
0 commit comments