kassner / log-parser

PHP Web Server Log Parser Library
Apache License 2.0
334 stars 64 forks source link

User name may contain dots, i.e. be a domain name #29

Closed mcd-php closed 7 years ago

mcd-php commented 7 years ago

User field in my log contains dots, because users are web sites via api, and logins are domain names. Nginx is OK with this, so any log parsing software must support this.

Now I changed 'user' field from %u to (?P<user>(?:-|[\w-\.]+)) in my config string, to avoid creating fork.

kassner commented 7 years ago

@mcd-php Thanks for reporting it, it is fixed and delivered on 1.3.1.

Thanks!