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) | Example | Multiple-Choice Options |
|---|---|---|---|---|
| 1 | What is the purpose of the 'iostat' command? | The 'iostat' command reports CPU and I/O statistics, helping to monitor system performance. | ||
| 2 | What 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. | ||
| 3 | What 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. | ||
| 4 | What is a threshold in monitoring? | A threshold is a predefined limit that, when exceeded, triggers an alert or action in a monitoring system. | ||
| 5 | What is the purpose of the 'sar' command? | The 'sar' command collects and reports system activity information, including CPU, memory, and I/O statistics. | ||
| 6 | What does the 'df' command do? | The 'df' command displays disk space usage for file systems in Linux. | ||
| 7 | What is a log analysis tool? | A log analysis tool processes and analyzes log files to extract useful information, identify trends, and detect anomalies. | ||
| 8 | What 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. | ||
| 9 | What 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. | ||
| 10 | What is the purpose of the 'netstat' command? | The 'netstat' command displays network connections, routing tables, and interface statistics. | ||
| 11 | What is a log rotation? | Log rotation is the process of archiving and compressing old log files to manage disk space and maintain system performance. | ||
| 12 | How 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. | ||
| 13 | What 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. | ||
| 14 | What 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. | ||
| 15 | What 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. | ||
| 16 | What 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. | ||
| 17 | What 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. | ||
| 18 | What 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. | ||
| 19 | What command is used to view log files in Linux? | The 'cat', 'less', or 'tail' commands are commonly used to view log files in Linux. | ||
| 20 | What is the purpose of the 'free' command? | The 'free' command displays the amount of free and used memory in the system. | ||
| 21 | What is the purpose of alerting in monitoring? | Alerting notifies administrators of critical issues or thresholds being exceeded, enabling prompt response to potential problems. | ||
| 22 | What 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. | ||
| 23 | What is a performance metric? | A performance metric is a quantifiable measure used to assess the performance of a system or application. | ||
| 24 | How can you check system uptime in Linux? | You can check system uptime using the 'uptime' command. | ||
| 25 | What 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. | ||
| 26 | What is the purpose of the 'top' command? | The 'top' command provides a dynamic, real-time view of system processes, including CPU and memory usage. | ||
| 27 | What is the function of the 'vmstat' command? | The 'vmstat' command reports information about processes, memory, paging, block IO, traps, and CPU activity. | ||
| 28 | What 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. | ||
| 29 | What is a monitoring agent? | A monitoring agent is software installed on a server that collects and sends performance data to a monitoring system. | ||
| 30 | What 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. | ||
| 31 | What 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. | ||
| 32 | What is log aggregation? | Log aggregation is the process of collecting and centralizing log data from multiple sources for easier analysis and monitoring. | ||
| 33 | What is ELK stack? | The ELK stack consists of Elasticsearch, Logstash, and Kibana, used for searching, analyzing, and visualizing log data. | ||
| 34 | What does the 'watch' command do? | The 'watch' command runs a specified command at regular intervals, allowing real-time monitoring of command output. | ||
| 35 | What 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. | ||
| 36 | What 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. | ||
| 37 | What is the significance of monitoring network traffic? | Monitoring network traffic helps identify bottlenecks, unauthorized access, and overall network performance. | ||
| 38 | What is the purpose of the 'dmesg' command? | The 'dmesg' command displays kernel-related messages, primarily used for diagnosing hardware issues. | ||
| 39 | What 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. | ||
| 40 | What is a monitoring dashboard? | A monitoring dashboard is a visual interface that displays key performance indicators and metrics in real-time. | ||
| 41 | What is the default location for system logs in Linux? | The default location for system logs in Linux is typically /var/log. | ||
| 42 | What is a log file parser? | A log file parser is a tool or script that processes log files to extract structured data for analysis. | ||
| 43 | What 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. | ||
| 44 | What is a log severity level? | Log severity levels indicate the importance of log messages, ranging from informational to critical errors. | ||
| 45 | What 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. | ||
| 46 | What 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. | ||
| 47 | What is the purpose of the 'ps' command? | The 'ps' command displays information about currently running processes on the system. | ||
| 48 | Name a popular system monitoring tool for Linux. | Prometheus is a popular system monitoring tool for Linux. | ||
| 49 | What command can be used to rotate logs manually? | The 'logrotate' command is used to manage log rotation in Linux. |