Analyze and Store Logs - RHCSA (RH124).pdf

support8872 767 views 13 slides Oct 10, 2024
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Slides on how to analyze and store logs - Part of RHCSA (RH124) syllabus


Slide Content

Analyze and Store log

Monitor Logs
●Continuous analysis of system
logs for security and
performance
●Directory where logs are
stored : /var/log

Why to maintain accurate time ?
●Synchronization with network services
●Security event correlation
●Accurate logging timestamps
●Coordination in distributed systems

Common Commands
To display the system date and time
●Command: date



UTC(Coordinated Universal Time) : Primary time standard by which the
world regulates clocks and time

timedatectl

●View and change the system time, date, and timezone
●Synchronize the system clock with a remote server using the Network Time
Protocol (NTP)
●Command: timedatectl

To list the timezones available in the system
●Command: timedatectl list-timezones

NTP protocol
NTP standardizes time synchronization; servers provide and respond to time
requests for clients

chronyd
●daemon for the chrony service used to synchronize the system
clock with NTP
●Chronyc: Command-line interface for Chrony
●‘/etc/chrony.conf’ - configuration file
●‘ /var/log/chrony’ - Log file

Install chrony
●Command: dnf install chrony
Start chrony service
●Command: systemctl start chronyd

Verify the status of chrony service
●Command: systemctl status chronyd

Displays the list of NTP sources that chronyd is using for time synchronization
●Command: chronyc sources

Show the current synchronization status of chronyd, including the reference
server, clock offset, and frequency adjustment
●Command: chronyc tracking