Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Linux centralized log server rsyslog     - Firewall Configuration Red Hat Enterprise Linux 4 (Linux)

- Do not find ifconfig eth0 and IP address under CentOS6.5 (Linux)

- xCAT error Unable to dispatch hierarchical sub-command to NORESOLUTION: 3001 (Linux)

- Python object-oriented programming (Programming)

- Ubuntu 15.04 and Ubuntu 14.04 installed Cinnamon 2.6 (Linux)

- IPTABLES configuration steps under Linux (Linux)

- MongoDB in bulk timestamp change the date format (Database)

- Linux server network penetration testing (Linux)

- Linux system security configuration (Linux)

- Setup Qt development environment under Linux (Linux)

- JavaScript object - Flexible and dangerous (Programming)

- CentOS 7 install Hadoop-cdh-2.5 on Mesos (Server)

- Java 8 perspective annotation types (Programming)

- CentOS7 iptables (Linux)

- hadoop 2.7.1 High Availability Setup Deployment (Server)

- On FreeBSD 10.2 Bugzilla how to install and configure Apache SSL (Server)

- Systemd on RHEL7 (Linux)

- Oracle Enterprise Linux 64-bit install apache-tomcat-7.0.53 step (Server)

- Oracle Linux 7.1 install Oracle 12C RAC (Database)

- The most simple drive to write and test procedures under linux (Programming)

  Linux centralized log server rsyslog
  Add Date : 2018-11-21      
  It can usually be achieved by rsyslog on Linux centralized management system log, in which case there is usually a log server, and then configure each machine to write to its own log by rsyslog on the remote log server.

This assumes that there are two servers, one as a server system log (such as machine name logmaster), the other as a client logs (such as machine name logclient)

Log Server Configuration
First modify /etc/rsyslog.conf log master file on the machine, which will be canceled the following four lines of comments

$ ModLoad imudp
$ UDPServerRun 514
$ ModLoad imtcp
$ InputTCPServerRun 514

And then restart the service rsyslogd

$ Sudo /etc/init.d/rsyslog restart

Log client configuration
/etc/rsyslog.conf file modification log node machine
Add the following line at the end, the purpose is to allow Linux to write the log, while writing a log mater to the remote machine

*. * @logmaster

And then restart the service rsyslogd

$ Sudo /etc/init.d/rsyslog restart

On Linxu can use the logger command to write to a system log, such as

$ Logger 'hello world'

And then view the log / var / log / messages file on the master machine, you can see something like this

Jun 28 14:58:16 logclient root: hello world

Including date, log source (machine name), process name and contents of the log.
- Linux Proc File System Experiment (Linux)
- Figlet use (Linux)
- MySQL5.7 implement virtual column expression index (Database)
- Linux firewall anti-hacker disguise malicious attacks (Linux)
- Nginx Performance Tuning Guidelines (Server)
- You know the difference between URL, URI and URN among you (Linux)
- Ubuntu derivative version of the user and how to install SmartGit / HG 6.0.0 (Linux)
- Haproxy multi-domain certificate HTTPS (Server)
- CentOS6 installed Tomcat (Server)
- CentOS system dual network card IP information configuration (Linux)
- To install Google Chrome browser under Ubuntu 14.04 LTS (Linux)
- Linux security settings Basics (Linux)
- MySQL common functions summary (Database)
- To convert into a binary search tree sorted doubly linked list (Programming)
- Fedora 20 Installation and Configuration (Linux)
- Install the latest Pinta graphics editing software on Ubuntu 14.04 (Linux)
- Security matters and practical Linux System (Linux)
- Oracle Database Delete Delete million or more common method of heap table data (Database)
- ApacheDS configuration of users and user groups to achieve SSO (Server)
- C ++ string in the end (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.