About 37,200,000 results
Open links in new tab
  1. What are the best ways to search in logs? - Stack Overflow

    May 5, 2015 · use grep with -B option ( -B, --before-context=NUM print NUM lines of leading context) to tell how many lines to print before the line of search: For finding the error in all the log: grep -B 100 '500 Internal Server Error' production.log For real time error: tail -f production.log | grep -B 100 '500 Internal Server Error'

  2. Linux Log Files Location & How To View Logs Files on Linux - nixCraft

    May 8, 2024 · Explains how to view log file location and search log files in Linux for common services such as mail, proxy, web server using CLI and GUI.

  3. How to Tail, Search, and Filter Linux Logs - Papertrail

    The good news is Linux has a broad array of tools for searching and filtering log files. Like most system administration tasks, there’s more than one way to tackle this task. Viewing and Tailing Logs. Let’s start by looking at the last few messages in a …

  4. How to search text in Linux logs | LabEx

    By mastering text search techniques in Linux logs, professionals can significantly enhance their ability to diagnose system problems, track critical events, and maintain robust server infrastructure. The skills learned in this tutorial provide a solid foundation for efficient log analysis and proactive system management in Linux environments.

  5. Read and Search Logs: tail, grep, and less - FelixRante

    Oct 3, 2024 · Enter the power trio of Linux log analysis: tail, grep, and less. In this guide, we’ll dive deep into these essential commands, equipping you with the skills to become a log analysis pro.

  6. Linux Logs: How to View, Read & Configure - phoenixNAP

    Jun 26, 2024 · Knowing how to view, read, and configure Linux log files is crucial for system administration and troubleshooting. The following text explains Linux log files and how to view, read, and configure them. A Linux system (this tutorial uses Ubuntu 22.04). Access to the terminal. A user account with sudo or root privileges. What Are Linux Log Files?

  7. Linux Basics: How to view log files on the shell - FAQforge

    Jun 12, 2022 · In the following tutorial, I will explain several shell commands that make it easy to view log files on the Linux command line (shell). These commands will work on all major Linux distributions incl. AlmaLinux, CentOS, Debian, Fedora, RockyLinux, and Ubuntu. The most important command is "tail".

  8. Working with Linux Logs: journalctl, grep, awk, and sed

    Feb 11, 2025 · To search for a specific keyword in a log file: grep "error" /var/log/syslog. To perform a case-insensitive search: grep -i "failed" /var/log/auth.log. Combine journalctl and grep for more precise filtering: journalctl | grep "disk failure"

  9. How to Filter Linux Log Files by Date [4 Useful Commands]

    Dec 4, 2023 · Simply doing cat to read a log file is a kinda basic way to inspect a log file. But when you want to filter data in an organized way based on time, then we use journalctl, awk, grep, and sed commands. For instance, in order to read the ‘ boot.log.1 ‘ file, we can use the following cat command. Here’s an explanation of the above command:

  10. Linux Event Logs: Your Troubleshooting Guide | Last9

    Mar 26, 2025 · Where to Find Linux Event Logs. The most comprehensive list of events in Linux is typically found in /var/log/syslog (on Debian-based systems like Ubuntu) or /var/log/messages (on Red Hat-based systems like CentOS). These files contain almost everything happening on your system. But Linux doesn't put all its eggs in one basket.

  11. Some results have been removed
Refresh