Fix regex that parses the RDS slowquery user
This commit is contained in:
parent
9cbcf1096a
commit
7446627fae
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ func FieldsFromKayvee(line string) (map[string]interface{}, error) {
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var userPattern = `#\sUser@Host:\s(?P<user>[a-zA-Z]+\[[a-zA-Z]+\])\s@\s[a-zA-Z]+.*Id:\s+(?P<id>[0-9]+)`
|
var userPattern = `#\sUser@Host:\s(?P<user>[a-zA-Z]+\[[a-zA-Z]+\])\s@\s.*Id:\s+(?P<id>[0-9]+)`
|
||||||
var userPatternRegex = regexp.MustCompile(userPattern)
|
var userPatternRegex = regexp.MustCompile(userPattern)
|
||||||
|
|
||||||
func FieldsFromRDSSlowquery(rawlog string) map[string]interface{} {
|
func FieldsFromRDSSlowquery(rawlog string) map[string]interface{} {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue