Improve grok pattern matching for apache logs
Apache grok pattern updated to match the size of response in bytes, the time taken to serve the request and the user-agent that made the request. Change-Id: I8ce6e6e10bbf55ef8aa21f983f4a6c4b6dc24402
This commit is contained in:
parent
ec4b9e875a
commit
63213c0e23
@ -4,7 +4,7 @@
|
||||
key_name Payload
|
||||
<parse>
|
||||
@type grok
|
||||
grok_pattern \[%{HTTPDATE:Timestamp}\] "(?:%{WORD:http_method} %{NOTSPACE:http_url}(?: HTTP/%{NUMBER:http_version})?|%{DATA:rawrequest})" %{NUMBER:http_status} (?:\d+|-)
|
||||
grok_pattern \[%{HTTPDATE:Timestamp}\] "(?:%{WORD:http_method} %{NOTSPACE:http_url}(?: HTTP/%{NUMBER:http_version})?|%{DATA:rawrequest})" %{NUMBER:http_status} (?:%{NUMBER:http_bytes}|-) (?:%{NUMBER:http_response_time_us}|-) "%{DATA:referrer}" "%{DATA:agent}"
|
||||
time_key Timestamp
|
||||
time_format %d/%b/%Y:%H:%M:%S %z
|
||||
keep_time_key true
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Updates apache grok pattern to match the size of response in bytes,
|
||||
time taken to serve the request and user agent.
|
Loading…
Reference in New Issue
Block a user