I put these two lines in my rsyslog.conf file:
$template PerHostLogs,"/var/log/syslog/%FROMHOST%.log"
*.* -?PerHostLogs
No, messages from remote hosts are logged both in /var/log/messages and /var/log/syslog/myhostexample.log
How to stop logging to /var/log/messages and just keep logging into separate host files? I want /var/log/messages just to have messages from localhost and separate files inside /var/log/syslog to have messages from remote hosts.
Thank you in advance.

