2023-08-20 00:55:50
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
|
||||
# Please note that in debian 12 bookworm you will need to
|
||||
# install rsyslogd with apt install rsyslog
|
||||
mkdir -p /var/log/remote
|
||||
chown syslog:adm /var/log/remote
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#add
|
||||
# provides UDP syslog reception
|
||||
module(load="imudp")
|
||||
input(type="imudp" port="514")
|
||||
|
||||
# provides TCP syslog reception
|
||||
module(load="imtcp")
|
||||
input(type="imtcp" port="514")
|
||||
|
||||
$template RemoteLogs,"/var/log/remote/%HOSTNAME%/%PROGRAMNAME%.log"
|
||||
*.* ?RemoteLogs
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# in /etc/rsyslog.conf
|
||||
# add in the sending rsyslogd
|
||||
# use @@ or @ not BOTH!
|
||||
#
|
||||
*.* @@192.168.100.2:514 # for tcp
|
||||
#*.* @192.168.100.2:514 # for udp
|
||||
# @@ = tcp
|
||||
# @ = udp
|
||||
Reference in New Issue
Block a user