• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

logwatch : command not found

by Deepika

Logwatch is a log analysis tool used in Unix-like systems. It summarizes logs from various services such as Apache, PAM, SSH, and others into a single report. This report provides a summary of the system’s activity, including security-related information, for the specified time period (e.g. daily, weekly, etc.). Logwatch uses a flexible rule system to determine which log entries are interesting and important, and then formats the output into a readable report. The report is usually sent via email, although it can also be sent to a file or to standard output. Logwatch helps system administrators to monitor their systems by providing them with a concise, automated summary of log data.

If you encounter the below error while running the command logwatch:

logwatch: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install logwatch
Ubuntu apt-get install logwatch
Arch Linux pacman -S logwatch
Kali Linux apt-get install logwatch
CentOS yum install logwatch
Fedora dnf install logwatch
Raspbian apt-get install logwatch

logwatch Command Examples

1. Analyze logs for a range of dates at a certain level of detail:

# logwatch --range yesterday|today|all|help --detail low|medium|others'

2. Restrict report to only include information for a selected service:

# logwatch --range all --service apache|pam_unix|etc

Filed Under: Linux

Some more articles you might also be interested in …

  1. atoum: A simple, modern and intuitive unit testing framework for PHP (Command Examples)
  2. TCP Wrapper (hosts.allow & hosts.deny) Command Options in Linux
  3. How to Control user access to Virtual Machine in RedHat Virtualization
  4. How to find which rpm package provides a specific file or library in RHEL / CentOS
  5. lynis: command not found
  6. zypper: command not found
  7. efibootmgr: command not found
  8. CentOS / RHEL : How to install and start the Apache httpd service
  9. How to Configure an NFSv4-only Client using nfsconf in CentOS/RHEL 8
  10. CentOS / RHEL 5,6 : How to reinstall GRUB loader from rescue mode

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright