From the course: Linux: System Maintenance

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up a logging server

Set up a logging server - Linux Tutorial

From the course: Linux: System Maintenance

Start my 1-month free trial

Set up a logging server

- [Instructor] If you're managing many systems, it can be helpful to configure them so they send their log files to one central server. Rather than having to connect to many machines to look for status information, a centralized server can save a lot of work. The rsyslog service can take care of this for us. Here on sentos, rsyslog is already keeping track of the local system's logs. We can configure it to accept logging information from remote systems too. To do that, we'll edit the rsyslog configuration file with sudo nano etc rsyslog.conf. with sudo nano etc rsyslog.conf. And part way down the screen here there's a section that provides tcp's sys log reception. I'll uncomment both of these lines. When one of which loads a tcp module, and the other tells rsyslog to run a server on port 514. I'll save that and exit. And then I'll restart the rsyslog service with sudo systemctl restart rsyslog. The service is waiting for input now, but it won't be able to get data because the firewall…

Contents