From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment
Unlock this course with a free trial
Join today to access over 24,300 courses taught by industry experts.
Logging in Linux: rsyslog, part 2 - Linux Tutorial
From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment
Logging in Linux: rsyslog, part 2
- Let's continue with our lab on logging in Linux with our rsyslog, and we're going to go back to our Debian client now. And what I want to do is I want to set up a separate directory for each system that is to be logged. This way all the information isn't just piling into a syslog file. So first thing I'm going to do here is, create a directory, and we'll call this remoteservers. You can call it whatever you want. And then we'll go back into our rsyslog.conf. So we'll do a vim on /etc/rsystlog.conf and let's scroll down to that section where it shows where it's going to be logging the information. Now this is for the local system as well as the remote systems. So it's logging everything right into this syslog file. So most likely we don't want this. So we'll go in and comment that out. Make a new line. And in fact, I might make a note here and we'll say Dave's remote directory for syslog, whatever you want to call it for a comment, just so you know. And we'll add something in here…