System Logging and Monitoring

Working with Linux log files, system monitoring tools, and troubleshooting techniques

Category
Linux
Level
advanced
Languages
en → en
Cards
49
Markdown
System Logging and Monitoring (.md)

Flashcards (49)

#Front (Term / Question)Back (Definition / Answer)ExampleMultiple-Choice Options
1What is the purpose of the 'iostat' command?The 'iostat' command reports CPU and I/O statistics, helping to monitor system performance.
2What is the role of 'Nagios' in system monitoring?Nagios is an open-source monitoring tool that provides monitoring and alerting for servers, networks, and applications.
3What is SNMP and its role in monitoring?SNMP (Simple Network Management Protocol) is a protocol used for network management and monitoring, allowing administrators to collect and organize information about managed devices.
4What is a threshold in monitoring?A threshold is a predefined limit that, when exceeded, triggers an alert or action in a monitoring system.
5What is the purpose of the 'sar' command?The 'sar' command collects and reports system activity information, including CPU, memory, and I/O statistics.
6What does the 'df' command do?The 'df' command displays disk space usage for file systems in Linux.
7What is a log analysis tool?A log analysis tool processes and analyzes log files to extract useful information, identify trends, and detect anomalies.
8What is a health check in system monitoring?A health check is a routine check performed to assess the operational status of a service or system component.
9What is a log entry?A log entry is a single record in a log file that contains information about an event, including a timestamp, message, and severity level.
10What is the purpose of the 'netstat' command?The 'netstat' command displays network connections, routing tables, and interface statistics.
11What is a log rotation?Log rotation is the process of archiving and compressing old log files to manage disk space and maintain system performance.
12How can you filter log messages in real-time?You can use the 'tail -f' command combined with 'grep' to filter log messages in real-time.
13What is the purpose of log files in Linux?Log files in Linux serve to record system events, application activities, and error messages, which are essential for troubleshooting and monitoring system performance.
14What is the role of the syslog daemon?The syslog daemon is responsible for receiving, processing, and storing log messages from various sources on a Linux system.
15What is the significance of the kernel log?The kernel log contains messages from the Linux kernel, providing insights into hardware events, driver issues, and system boot processes.
16What is the function of the 'htop' command?The 'htop' command is an interactive process viewer that provides a more user-friendly interface than 'top' for monitoring system processes.
17What is the significance of monitoring CPU load?Monitoring CPU load helps identify performance bottlenecks and ensures that the system is not overloaded, which can lead to slowdowns.
18What is the purpose of the 'ping' command?The 'ping' command tests the reachability of a host on a network and measures round-trip time for messages sent.
19What command is used to view log files in Linux?The 'cat', 'less', or 'tail' commands are commonly used to view log files in Linux.
20What is the purpose of the 'free' command?The 'free' command displays the amount of free and used memory in the system.
21What is the purpose of alerting in monitoring?Alerting notifies administrators of critical issues or thresholds being exceeded, enabling prompt response to potential problems.
22What is the difference between passive and active monitoring?Passive monitoring collects data from existing logs and metrics, while active monitoring involves sending requests to services to check their availability and performance.
23What is a performance metric?A performance metric is a quantifiable measure used to assess the performance of a system or application.
24How can you check system uptime in Linux?You can check system uptime using the 'uptime' command.
25What is a common log format for web servers?The Common Log Format (CLF) is a standard format for web server log files, which includes information like IP address, date, request method, and response status.
26What is the purpose of the 'top' command?The 'top' command provides a dynamic, real-time view of system processes, including CPU and memory usage.
27What is the function of the 'vmstat' command?The 'vmstat' command reports information about processes, memory, paging, block IO, traps, and CPU activity.
28What is system logging?System logging is the process of collecting and storing log messages generated by the operating system and applications to monitor system activities and diagnose issues.
29What is a monitoring agent?A monitoring agent is software installed on a server that collects and sends performance data to a monitoring system.
30What is the significance of monitoring disk usage?Monitoring disk usage helps prevent storage-related issues, such as running out of space, which can lead to system failures.
31What is the role of 'rsyslog'?Rsyslog is an enhanced version of syslog that provides advanced features like reliable message delivery, filtering, and support for multiple protocols.
32What is log aggregation?Log aggregation is the process of collecting and centralizing log data from multiple sources for easier analysis and monitoring.
33What is ELK stack?The ELK stack consists of Elasticsearch, Logstash, and Kibana, used for searching, analyzing, and visualizing log data.
34What does the 'watch' command do?The 'watch' command runs a specified command at regular intervals, allowing real-time monitoring of command output.
35What is the difference between syslog and journald?Syslog is a traditional logging system, while journald is part of systemd and provides structured logging with advanced features like indexing and querying.
36What is the role of a log management system?A log management system collects, stores, and analyzes log data to improve security, compliance, and operational efficiency.
37What is the significance of monitoring network traffic?Monitoring network traffic helps identify bottlenecks, unauthorized access, and overall network performance.
38What is the purpose of the 'dmesg' command?The 'dmesg' command displays kernel-related messages, primarily used for diagnosing hardware issues.
39What is the purpose of the 'uptime' command?The 'uptime' command shows how long the system has been running, along with the number of users and system load averages.
40What is a monitoring dashboard?A monitoring dashboard is a visual interface that displays key performance indicators and metrics in real-time.
41What is the default location for system logs in Linux?The default location for system logs in Linux is typically /var/log.
42What is a log file parser?A log file parser is a tool or script that processes log files to extract structured data for analysis.
43What is the purpose of the /var/log/auth.log file?The /var/log/auth.log file records authentication-related events, such as login attempts and sudo usage.
44What is a log severity level?Log severity levels indicate the importance of log messages, ranging from informational to critical errors.
45What is the purpose of monitoring tools in system administration?Monitoring tools help administrators track system performance, resource usage, and detect anomalies or failures in real-time.
46What is the purpose of the 'systemctl status' command?The 'systemctl status' command provides the current status of a systemd service, including its state and recent log entries.
47What is the purpose of the 'ps' command?The 'ps' command displays information about currently running processes on the system.
48Name a popular system monitoring tool for Linux.Prometheus is a popular system monitoring tool for Linux.
49What command can be used to rotate logs manually?The 'logrotate' command is used to manage log rotation in Linux.