Skip to content

Commit

Permalink
Add new grok pattern for matching dates like 'Wed Dec 08 19:57:42 -08…
Browse files Browse the repository at this point in the history
…00 2010' which are found in rails logs
  • Loading branch information
ec2 committed Jan 22, 2011
1 parent d101346 commit c09d5e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions patterns/grok-patterns
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ QS %{QUOTEDSTRING}
# Log formats
SYSLOGBASE %{SYSLOGTIMESTAMP:timestamp} (?:%{SYSLOGFACILITY} )?%{SYSLOGHOST:logsource} %{SYSLOGPROG}:
COMBINEDAPACHELOG %{IPORHOST:clientip} %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "%{WORD:verb} %{URIPATHPARAM:request} HTTP/%{NUMBER:httpversion}" %{NUMBER:response} (?:%{NUMBER:bytes}|-) "(?:%{URI:referrer}|-)" %{QS:agent}

# Custom formats
DATESTAMP_RAILS %{DAY} %{MONTH} %{MONTHDAY} %{TIME} (?:%{INT:ZONE} )?%{YEAR}

0 comments on commit c09d5e2

Please sign in to comment.