![]() # Include all config files in /etc/rsyslog.d/ ![]() # Set the default permissions for all log files. $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat # To enable high precision timestamps, comment out the following line. # Enable non-kernel facility klog messages Now each clients log (192.168.1.2, 192.168.1.3,etc.), will be under a separate directory which is formed by the template FILENAME. # Log all messages to the dynamically formed file. $template FILENAME,"/var/log/%fromhost-ip%/syslog.log" # This one is the template to generate the log filename dynamically, depending on the client's IP address. #$ModLoad immark # provides -MARK- message capability $ModLoad imklog # provides kernel logging support $ModLoad imuxsock # provides support for local system logging ![]() # Default logging rules can be found in /etc/rsyslog.d/nf # /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html etc/nf # /etc/nf Configuration file for rsyslog. My /etc/nf has these settings to enable the storage of log files from different servers based on their ip Right now, I have all of that working except it will only store the files in the /var/log directory. I'd like to send the rsyslog logs to that location, with a different directory for each server. This server has a storage hard drive that is very large, mounted at /home/username/logs
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |