Skip to content

Commit

Permalink
Improve log parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevan committed Jan 2, 2025
1 parent 7f02ad6 commit 7883ce2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions collector/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ func compilePrefix(prefix string) (*regexp.Regexp, error) {
if !hasq {
r += `?`
}
case 'a': // application name
r += `(?P<a>.{1,64})`
if !hasq {
r += `?`
}
case 'Q': // query identifier
r += `(?P<Q>-?\d+)`
case 'q': // rest are optional
Expand Down

0 comments on commit 7883ce2

Please sign in to comment.