2,187
edits
m (→Firewall: Added link to Troubleshooting) |
(→Syslog to MySQL Database: Added Syslog server setup) |
||
Line 195: | Line 195: | ||
</source> | </source> | ||
= Syslog to MySQL Database = | = Syslog = | ||
== Server == | |||
To setup your server as a central syslog receiver, edit the <code>/etc/resyslog.conf</code>, and deleted the comment outs for the following | |||
<pre># Provides UDP syslog reception | |||
$ModLoad imudp | |||
$UDPServerRun 514 | |||
# Provides TCP syslog reception | |||
$ModLoad imtcp | |||
$InputTCPServerRun 514</pre> | |||
Add the following section so that received syslog messages get put into a folder for each host its received from... | |||
$template PerHostLog,"/var/log/system-%HOSTNAME%.log" | |||
*.* -?PerHostLog | |||
Then restart the syslog service to apply... | |||
service rsyslog restart | |||
== To MySQL Database = | |||
This procedure achieves three things... | This procedure achieves three things... | ||
# Allows remote hosts to use the local server as a syslog destination | # Allows remote hosts to use the local server as a syslog destination |