Difference between revisions of "Rsyslog Client"
From The Linux Source
Line 1: | Line 1: | ||
− | 1. /etc/rsyslog.conf, add @sys.log.server.ip lines | + | 1. /etc/rsyslog.conf, add @sys.log.server.ip lines to the bottom of the file (optionally add logging rules, example lines are commented out at the bottom of a default rsyslog.conf file) |
− | + | UDP: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
# centralized logging | # centralized logging | ||
*.* @172.160.135.160:514 | *.* @172.160.135.160:514 | ||
+ | OR TCP: | ||
+ | # centralized logging | ||
+ | *.* @@172.160.135.160:514 | ||
2. Restart rsyslog service | 2. Restart rsyslog service |
Revision as of 15:37, 22 May 2017
1. /etc/rsyslog.conf, add @sys.log.server.ip lines to the bottom of the file (optionally add logging rules, example lines are commented out at the bottom of a default rsyslog.conf file)
UDP: # centralized logging *.* @172.160.135.160:514 OR TCP: # centralized logging *.* @@172.160.135.160:514
2. Restart rsyslog service
ENT 7 # systemctl restart rsyslog BEFORE Ent 7 # service rsyslog restart