CactiEZ v0.7 syslog does not receive log issue bugs

Source: Internet
Author: User
Tags syslog rsyslog

CactiEZ English version only update to v0.7, the default syslog after installation is problematic, performance can only receive native Syslog records, other devices pointing to its log can not display, on the device using netstat ano | grep UDP is not displayed on the listening UDP 514 port.

This is mainly due to the fact that the configuration file has two lines of modules being commented on.

Vi/etc/rsyslog.conf

The following two lines

# $ModLoad IMUDP

# $ModLoad Imtcp

Revision changed to

$ModLoad imtcp

$ModLoad imtcp

Then delete the process

Killall/sbin/rsyslogd

Re-open the process

/sbin/rsyslogd-i/var/run/syslogd.pid-c 5

That's good.

The log is then displayed, but does not display different colors depending on the level, and you need to edit the/etc/rsyslog.conf:

Before modification:

$template Cacti_syslog, "INSERT into syslog_incoming (facility, priority, date, time, host, message) values (% syslogfacility%,%syslogpriority%, '%timereported:::d ate-mysql% ', '%timereported:::d ate-mysql% ', '%HOSTNAME% ', '% msg% ') ", SQL

After modification:

$template Cacti_syslog, "INSERT into syslog_incoming (facility, priority, date, time, host, message) VALUES ('% syslogfacility-text% ', '%syslogpriority-text% ', '%timereported:::d ate-mysql% ', '%timereported:::d ate-mysql% ' , '%hostname% ', '%msg% '), SQL

Notice the change (')

CactiEZ v0.7 syslog does not receive log issue bugs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.