Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Configuring Haproxy log support (syslog logging support)     - linux remote control software (Linux)

- To set up the printer use Nagios Monitoring Server (Server)

- Linux / Unix: chroot command examples to explain (Linux)

- IronPython and C # to interact (Programming)

- Elasticsearch Kibana installation notes (Linux)

- Performance comparison Fibonacci recursive and non-recursive (Programming)

- MySQL separation Amoeba achieve literacy (Database)

- Python script running in the background (Programming)

- Oracle 11g new features of the collection of multi-column statistics (Database)

- Linux commands to access the cheat sheet (Linux)

- impdp error ORA-31631, ORA-39122 (Database)

- Fundamentals of the Java virtual machine memory management principles (Programming)

- sa weak passwords intrusion prevention (Linux)

- Top command: the Task Manager under linux (Linux)

- Install NetBeans IDE 8.0 on Ubuntu, Linux Mint, Elementary OS, and Debian (Linux)

- Open SSH remote access service that allows Android phone Ubuntu 14.04 (Linux)

- MySQL service failed to start thinking of settlement under CentOS7 (Database)

- Linux process management related content (Linux)

- Implicit conversion from Java type conversion compare MySQL and Oracle (Database)

- C language - Traverse pci device (Programming)

 
         
  Configuring Haproxy log support (syslog logging support)
     
  Add Date : 2018-11-21      
         
         
         
  System CentOS 6.x

Configure logging support Haproxy

cp /etc/rsyslog.conf /etc/rsyslog.conf`date +% F`
ll /etc/rsyslog.con*
cat >> /etc/rsyslog.conf< #haproxy
local0. * /application/haproxy/logs/haproxy.log
#end
EOF

## Should be specified in the configuration file is haproxy local0, so here choose local0. The following configuration haproxy corresponding configuration file:

===============

log 127.0.0.1:514 local0 warning

## Global logging configuration ,, log keyword specifies the syslog 127.0.0.1:514 Service local0 log level, where the choice is warning, do not use general info

================

# Modify / etc / sysconfig / rsyslog reads as follows:

[Root @ MASTER ~] # tail -2 / etc / sysconfig / rsyslog
#SYSLOGD_OPTIONS = "- C 5"
SYSLOGD_OPTIONS = "- c 2 -m 0 -r -x"
[Root @ MASTER ~] #

# Reboot /etc/init.d/rsyslog

/etc/init.d/rsyslog restart

# 6.4 is not the default port

netstat -lntup
 /etc/init.d/rsyslog restart

######## Rsyslog.conf allowed to modify appears port

egrep 'UDPServerRun | ModLoad' /etc/rsyslog.conf
sed -i 's / # $ UDPServerRun 514 / $ UDPServerRun 514 / g' /etc/rsyslog.conf
sed -i 's / # $ ModLoad imudp / $ ModLoad imudp / g' /etc/rsyslog.conf
sed -n -e '/ $ ModLoad imudp / p' -e '/ $ UDPServerRun / p' /etc/rsyslog.conf

# Reboot /etc/init.d/rsyslog

/etc/init.d/rsyslog restart
  netstat -lntup | grep rsyslog
  
[Root @ MASTER ~] # netstat -lntup | grep rsyslog
udp 0 0 0.0.0.0:514 0.0.0.0:* 5031 / rsyslogd
udp 0 0 ::: 514 ::: * 5031 / rsyslogd
[Root @ MASTER ~] #
  ====================
[Root @ MASTER ~] # cat /application/haproxy/logs/haproxy.log
Nov 6 10:58:49 127.0.0.1 haproxy [5049]: Stopping proxy test in 0 ms.
Nov 6 10:58:49 127.0.0.1 haproxy [5049]: Proxy test stopped (FE: 0 conns, BE: 0 conns).
Nov 6 10:58:58 127.0.0.1 haproxy [5055]: Stopping proxy test in 0 ms.
Nov 6 10:58:58 127.0.0.1 haproxy [5055]: Proxy test stopped (FE: 0 conns, BE: 0 conns).
[Root @ MASTER ~] #

### Note that if you still can not log, remember to turn off selinux
     
         
         
         
  More:      
 
- JavaScript common functions summary (Programming)
- Linux Mint 17.2 64 bit installation Docker and management software seagull (Linux)
- OGG-03510 Problem (Database)
- init level settings for Linux / etc / inittab file into six (restart) or does not support the level of solution (Linux)
- Linux System Getting Started Tutorial: permission to permanently modify the USB device in Linux (Linux)
- When a software RAID data recovery and reconstruction of how failure (Linux)
- Java memory area (Programming)
- Android Application Development: Genymotion can not start solving (Linux)
- xCAT line installation on CentOS 6.X (Linux)
- Linux RAID Set RAID 10 or 0 + 1 (Linux)
- How to configure a development environment elegant Lua (Linux)
- How to set IonCube Loaders in Ubuntu (Linux)
- C language programming entry - Common operators (Programming)
- Oracle background processes daemons (Database)
- To install GCC development environment under SUSE11 (Linux)
- iOS constants, variables, properties and characteristics (Programming)
- Java memory area and memory overflow exception (Programming)
- Linux, MySQL / MariaDB Galera Cluster Setup Process (Database)
- Forgot Linux root password (Linux)
- Transfer files to Windows and Linux (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.