I am in the middle of configuring a (r)syslog server as a remote server that receives logs from various clients.
I wonder whether there is a nicer way to dynamically generate multiple file names as opposed to create a template for any facility.priority whose filename should be created dynamically.
$template FILENAME,"/var/log/%fromhost-ip%/syslog.log"
kern.* ?FILENAME
besides that, do I have to explicitly tell the services/daemons to use TCP in order to use logging via TCP with (r)syslogd? Like when I turn off the server's ability to receive UDP packets, it stopps logging anything. Or differently put:
kern.* @loghost
doesn't work.