How to configure rsyslog server to log messages from different hosts to different files or directories for RHEL 7 and later
Issue
- rsyslog does not support remote logging with individual logs on per host basis.
- How can remote logging with individual logs on a per host basis be configured with rsyslog and prevent remote logs to written into default path like
/var/log/messages
?
Environment
- Red Hat Enterprise Linux (RHEL) 7
- Red Hat Enterprise Linux (RHEL) 8
- Red Hat Enterprise Linux (RHEL) 9
- rsyslog
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.