Explore information related to rsyslog configuration example

Setup Rsyslog Server on Ubuntu 20.04 - How to do it ?

This article covers how to install and configure Rsyslog Server and Client on Ubuntu 20.04 LTS Focal Fossa system. In fact, Checking logs is an important activity to see what's happening on your Linux servers, especially when you are trying to locate an issue. In Rsyslog, the config files remain the same as Syslog. That simply means you can copy a syslog.conf file directly into rsyslog.conf and it will work.

The syslog-ng, FluentD, Logstash, GreyLog2, and Logagent, Filebeat are the other alternatives for Rsyslog.

Directory where different sorts of logs stored in a Linux system:

  • /var/log/syslog - Stores all startup messages, application startup messages etc. Practically stores all global system logs.
  • /var/log/cron - The Cron jobs are basically kind of scheduled and automated task created in the system, that runs periodically and repeatedly. You can see what this logs directory would store.
  • /var/log/kern.log - it stores kernel logs. No matter what logs they are. Event logs, errors, or warning logs.
  • /var/log/auth.log - Authentication logs.
  • /var/log.boot.log - System boot logs.
  • /var/log/mysql.d - Mysql logs.
  • /var/log/httpd - Apache logs directory.
  • /var/log/maillog - Mail server logs.

Read More

Configure Rsyslog Server on Debian 10 / Debian 11 (Bullseye) - Step by step guide ?

This article covers how to set up the Rsyslog server on Debian 11. In fact, Rsyslog is a free and open-source logging software that forwards all log files to the centralized log server through the IP network. It helps system administrators to keep an eye on all servers from the central point. Rsyslog works in a client/server model, it receives logs from the remote client on port 514 over the TCP/UDP protocol.

How to Install Rsyslog on any Linux distribution ?

1. First, you will need to install the Rsyslog server package on the server machine. You can install it in Debian / Ubuntu using the following command:

$ apt-get install rsyslog -y

In RHEL based distros like CentOS:

$ sudo yum install rsyslog

2. After the installation, verify the Rsyslog status using the following command:

$ systemctl status rsyslog

Read More

For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on LinuxAPT.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com