After installing the HAproxy 1.4 in CentOS 6.4 bydefault logging of haproxy was not enable.To enable the logging of HAProxy you have to enable it in rsyslog(In CentOS 6.4 minimal installation,rsyslog version 5.2 is shipped). To setup logging in HAproxy,follow the given below steps Step 1: In Global Section of haproxy.cfg put the value log […]
logging
Keep logs of user after sudo su – : Secondary Logging
When we do sudo su – or su – and user become root we mostly found that in log it is not easy to track which command is used by which user. In this post, we will setup the secondary logging to Keep logs of root user after sudo access. You can also setup the […]
Saving every command and its output in log in Unix
In this post we will learn about saving every linux/unix command and its output in log file. The command called script will be use to save the command output in log. Run script command to save command output in file/log script filename.log Example: [root@server1 ~]# [root@server1 ~]# script my.log Script started, file is my.log Welcome […]