# How to check server logs Keep track of server activity with OpManager's robust log monitoring feature ## What are server logs? Server logs are files generated by a server to record its activities and events. Logs help you track important information like user requests, log in details, system performance, errors, and security events. This page explores the following topics on server logs: - [Types of server logs](https://www.manageengine.com/network-monitoring/how-to-check-server-logs.html#log-types) - [How to open and check server logs in Windows and Linux?](https://www.manageengine.com/network-monitoring/how-to-check-server-logs.html#check-server-logs-windows-linux) - [Why do you need a log monitoring tool?](https://www.manageengine.com/network-monitoring/how-to-check-server-logs.html#logging-tool-need) - [Event log monitoring with OpManager](https://www.manageengine.com/network-monitoring/how-to-check-server-logs.html#about-opmanager) ## Understanding the different types of server logs Logs generated by the server can be broadly classified into the following: - **Access logs**: This type includes all user interaction details such as login attempts, resource access information like timestamp, IP and request types. - **Application and system logs**: Includes events, traces, and errors associated with applications. These logs help during debugging. - **Security logs**: These logs are useful to detect security threats or anomalies, by giving insights into authentication or login attempt failures, and policy changes. - **Errors**: This includes record of exceptions, malfunctions and unusual behaviour of applications. ## How to open and check server logs? Server logs can be accessed by using the following methods: - Manual: Using native tools provided by the OS - Advanced: Using a centralized logging tool ### Manual method Generally server logs are stored in plain text. So, all you need is a text reader like NotePad or MS Word to access the log information. Some logs, which are available in HTML format, can be viewed directly with the help of a web browser. Apart from this, each operating system provides its own tools and commands to access and read logs. Let us see how you can leverage the native tools available in Windows and Linux. **Windows** - Click Start and open *Event log viewer.* Or, press *Windows + R* to open the Run dialog box, type *eventvwr* and hit Enter. ![](https://www.manageengine.com/network-monitoring/images/windows-event-viewer.png) - Expand Windows Logs. ![](https://www.manageengine.com/network-monitoring/images/windows-system-event-viewer.png) - Click on the log type (Application or System or Security) to view the log information. ![](https://www.manageengine.com/network-monitoring/images/windows-system-related-log-data.png) **Linux** - There are different kinds of logs (such as System, event and application). Each log file has a different file path. - Also, the files may vary based on the Linux version in use (Ubuntu/RedHat). - Below are some common log files and the type of information they provide (Ubuntu version for this example): | Log file | Log type / Description | |---|---| | /var/log/syslog | Provides insights into system events, notifications from system services, and application errors. | | /var/log/kern.log | Offers information about kernel (OS) related events such as hardware issues or memory problems. Useful for analyzing system reboots or hardware failures. | | /var/log/auth.log | Provides details on user logins (both failed and successful) and other authentication-related events. | | /var/log/apache2/access.log | Captures HTTP request IPs, URLs, and Apache-specific events. | | /var/log/apache2/error.log | Captures runtime errors, records broken links and server errors. | The following are some of the commonly used commands: - **tail -f ** – Enables you to view real-time data and gives you a glimpse of the most recent events. - **cat ** – Gives you a full view of the specified log file. - **cat | grep ** – Enables you to search for particular information from a large log file. ### Advanced method: Why do you need a logging tool? While OS native tools like the Event Viewer for Windows provide visibility into logs, relying on separate tools for each system (or server type) creates data silos. This means correlating the data across the servers becomes time consuming and increases the time taken to troubleshoot issues. However, a centralized logging tool enables you to overcome these challenges by giving you unified visibility. A centralized server log monitoring tool will derive data from multiple sources and present it in a [unified dashboard](https://www.manageengine.com/network-monitoring/network-management-console.html). With real-time alerts for critical errors, IT teams can proactively address issues instead of manually checking individual log files. ## Simplify server log management with OpManager OpManager is an agent-based [server log monitoring and management solution](https://www.manageengine.com/network-monitoring/server-log-management-software.html) that supports both [Windows](https://www.manageengine.com/network-monitoring/windows-server-monitoring.html) and [Linux server environments](https://www.manageengine.com/network-monitoring/linux-server-monitoring.html). It monitors server log files for text, regex (regular expressions), content patterns or phrases to detect application errors or anomalies. For this purpose, a lightweight agent is installed on the server. With real-time alerting and a centralized view of logs from multiple servers, IT teams can quickly identify root causes by correlating logs across different systems. This also significantly reduces the manual effort for parsing and analyzing the logs. To learn more about these features and how it can help manage your network better, take a [free personalized demo](https://www.manageengine.com/network-monitoring/demo-form.html?server-health-monitoring) or [try our product for yourself with our free edition](https://www.manageengine.com/network-monitoring/free-edition.html?server-health-monitoring). ## Related Products - [Network Monitoring](https://www.manageengine.com/network-monitoring/?relPrd) - [Bandwidth Monitoring & Traffic Analysis](https://www.manageengine.com/products/netflow/?relPrd) - [Network Configuration Management](https://www.manageengine.com/network-configuration-manager/?relPrd) - [Switch Port & IP Address Management](https://www.manageengine.com/products/oputils/?relPrd) - [Firewall Management](https://www.manageengine.com/products/firewall/?relPrd) - [Network Monitoring Software for MSPs](https://www.manageengine.com/network-monitoring-msp/?relPrd) - [IT Operations Management](https://www.manageengine.com/it-operations-management/) - [Application Performance Monitoring](https://www.manageengine.com/products/applications_manager/?relPrd)