2023-08-20 00:55:50

This commit is contained in:
henk
2023-08-20 00:55:50 +02:00
parent 7a397eb242
commit e9a33c69a7
3 changed files with 26 additions and 0 deletions
@@ -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
+12
View File
@@ -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
+8
View File
@@ -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