gforcada / haproxy_log_analysis

HAProxy log analyzer
https://pypi.org/project/haproxy_log_analysis
GNU General Public License v3.0
89 stars 35 forks source link

update syslog slug regex #11

Closed danwald closed 9 years ago

danwald commented 9 years ago

I was using your niffy utility to parse my haproxy logs. However, I couldn't get any lines processed because my haproxy slug had a hostname (server has an updated hosts file with '-') instead of localhost/IP.

Here's a relevant snip of the man 5 hosts

Host names may contain only alphanumeric characters, minus signs ("-"), and periods (".").

Added a unittest too. Thanks for the utility, Cheers,

gforcada commented 9 years ago

Many thanks for this pull request!