#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
手动设置服务端SYSLOG配置
设置“/etc/syslog-ng/syslog-ng.conf”文件,在文件中添加如下内容:
template t_gaussdb {template("$DATE $SOURCEIP $MSGONLY\n");template_escape(no);};
source s_gaussdb{ udp(); };
filter f_gaussdb { level(err, crit) and match('GaussDB'); };
destination d_gaussdb { file("/var/log/syslog_MPPDB", template(t_gaussdb)); };
log { source(s_gaussdb); filter(f_gaussdb); destination(d_gaussdb); };
设置“/etc/sysconfig/syslog”文件,在文件中添加如下内容:
SYSLOGD_OPTIONS="-r -m 0"
KLOGD_OPTIONS="-x"
说明: 该配置需要在openGauss每台机器上都要修改。
#openGauss #入门 #安装 #数据库 #开源