Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way I can get similar stats to WebAlizer from HAProxy so I can see the amount of traffic - historically - which hits my HAProxy server?

Thanks!

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

HAProxy is load balancer that can generate web logs. Webalizer, AWStats, etc parse the log files and generate the reports.

Therefore there are two routes you can take:

  1. See if your web analyzer supports a custom log format parsing option and adjust the analysis program to fit haproxy logs. Usually this will be some sort of regular expression configuration directive.
  2. Customize haproxy logs to fit what your log analysis program expects

HAProxy does support the common log format (CLF) via the option httplog clf directive (see documentation). HAProxy also recently supports custom logs formats, see the 1.5 documentation section 8.2.4.

Between these two options one or combination of the two should be able to get you where you want to go.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.