Proxmox Debian rsyslog远程日志客户端配置

1 检查是否安装rsyslog

root@pve1:~# apt list |grep rsyslog

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

puppet-module-saz-rsyslog/stable 2.2.1-2 all
rsyslog-czmq/stable 8.2302.0-1 amd64
rsyslog-doc/stable 8.2302.0+dfsg-1 all
rsyslog-elasticsearch/stable 8.2302.0-1 amd64
rsyslog-gnutls/stable 8.2302.0-1 amd64
rsyslog-gssapi/stable 8.2302.0-1 amd64
rsyslog-hiredis/stable 8.2302.0-1 amd64
rsyslog-kafka/stable 8.2302.0-1 amd64
rsyslog-kubernetes/stable 8.2302.0-1 amd64
rsyslog-mongodb/stable 8.2302.0-1 amd64
rsyslog-mysql/stable 8.2302.0-1 amd64
rsyslog-openssl/stable 8.2302.0-1 amd64
rsyslog-pgsql/stable 8.2302.0-1 amd64
rsyslog-relp/stable 8.2302.0-1 amd64
rsyslog-snmp/stable 8.2302.0-1 amd64
rsyslog/stable,now 8.2302.0-1 amd64 [installed]

2 Proxmox配置

root@pve1:~# cat /etc/rsyslog.d/remote-logging.conf 
#
*.* @192.168.163.1:514

3 Debian配置

root@Debian:~# cat /etc/rsyslog.conf
//******
//最后一行添加
*.* @192.168.163.1:514

# 注释:
@:UDP
@@:TCP

发表回复

登录... 后才能评论