0% found this document useful (0 votes)
18 views13 pages

09 Analyze and Store Logs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views13 pages

09 Analyze and Store Logs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

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

You might also like