RSYSLOG for Logging HAProxy

RSYSLOG is the rocket-fast system for log processing.

It offers high-performance, great security features and a modular design. While it started as a regular syslogd, rsyslog has evolved into a kind of swiss army knife of logging, being able to accept inputs from a wide variety of sources, transform them, and output to the results to diverse destinations.

RSYSLOG can deliver over one million messages per second to local destinations when limited processing is applied (based on v7, December 2013). Even with remote destinations and more elaborate processing the performance is usually considered "stunning".

No need to install rsyslog on Linux OS because the default linux ubuntu is already installed rsyslog. The configuration file is in /etc/rsyslog.conf

Just run the rsyslog configuration for the haproxy log. Then edit the rsyslog.conf file

       nano /etc/rsyslog.conf


remove the # character as shown above. The option is useful to open port 514 with udp protocol. Then on the bottom row yourself add


local0 is configured with the global config name contained in the log haproxy config section.

. * means all events (notice, error, info) will all be logged.

- / var / log / haproxy.log is the path where the message from the log will be written into the file.

If you have server logs and want to log in to the server, just point to that log server with the settings below.



rsyslog server configuration


On the server, open port 514 with tcp protocol.


then on the bottom line add the log path.

After finished configure save the file and do not forget to restart rsyslog service

     /etc/init.d/rsyslog restart

The End. Feel free to ask any question. Thank you.


Comments

Popular posts from this blog

Computer Graphics Project "Planet Orbit" Source Code with Glut OpenGL

Quantization of Image Data Implementation in C#

Computer Graphics Project "MINION" Source Code with Glut OpenGL