Setup Centralized Logging Server in Linux | Configure rsyslog Server & Client in RHEL (CentOS)

preview_player
Показать описание
Configure Centralized rsyslog Server in RHEL:
----------------------------------------------------------------------
rsyslog is responsible for log processing in RHEL. rsyslog is abbreviation of ‘Rocket Fast System for Log processing’. rsyslog offers high-performance, great security features and modular design. It can accept input from wide variety of sources, transform it and output the result to diverse destinations.

In this article, we will configure a central logging server using rsyslog on RHEL and then we will configure RHEL clients to submit their local logs to this rsyslog based central logging server.

Environment Specification:
We are using two virtual machines, one as the rsyslog server and the other as the rsyslog client.
SERVER IP Address: 192.168.1.180 (RHEL 7.7)
CLIENT IP Address: 192.168.1.170 (RHEL 7.3)

Configuring rsyslog Server on RHEL 7.7:
---------------------------------------------------
1. rsyslog is by default installed on most of the Linux distros including RHEL/CentOS.
# rpm -qi rsyslog

2. Now we are configuring rsyslog settings to accept input from other machines.
Find and uncomment following two directives.
$ModLoad imtcp
$InputTCPServerRun 514

Save settings.

4. Allow rsyslog service port in Linux firewall and reload the firewall.
# firewall-cmd --permanent --add-port=514/tcp
# firewall-cmd --reload

Our rsyslog server has been configured to received input from other log sources via port 514/tcp.

Configuring rsyslog Client on RHEL 7.3:
---------------------------------------------------
# rpm -qi rsyslog

# *.* 192.168.1.180:514

Our rsyslog client has been configured.
=========================================

Now connect to our rsyslog server and check /var/log/messages
# tail /var/log/messages

We can see that client is forwarding its logs to server.

We have successfully configure a central login server using rsyslog on CentOS 7.

================
Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will be glad to answer your queries. Don't forget to subscribe the channel & turn on the bell notifications.
===============
Our Some Popular Videos:

NAVIC:

Learn Linux Fundamentals:

Concept of All RAID Levels:

Configure RAID-0 in Linux:

Configure RAID-1 in Linux:

Configure RAID-5 in Linux:

Configure RAID-6 in Linux:

Configure RAID-10 in Linux:

LVM Snapshot:
====================================================
Contact Us:

To Follow Vikas Nehra's Twitter Handle:👇

For Registration:👇

To Follow Our Twitter Handle:👇

To Visit Our Facebook Page:👇

To Follow Nehra Classes on Instagram:👇

To Our Visit Our Webpage:👇

Join Us on Telegram App: 👇

WhatsApp Us: 👇

Email Us:👇
============
©COPYRIGHT. ALL RIGHTS RESERVED.
Рекомендации по теме
Комментарии
Автор

thank you for your time making this video

mrfeno
Автор

Thanks Nice Nehra super god bless you

jbrjbn
Автор

thank you sir, this video is really helpful

elyacoubiahmed
Автор

Hello
Does syslog not use UDP port by default?
Also can you make a video for ufw - firewall in debian based
Thanks

ikrakoy
Автор

How do you set up so that multiple clients send there logs to the server

samdman
visit shbcf.ru