logwatch command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
logwatch: command not found
or when using sudo you get the following error message
sudo: logwatch: command not found
Solutions to logwatch: command not found
How To Fix logwatch: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu logwatch is provided by logwatch package.
logwatch is:
Logwatch is a modular log analyser that runs every night and mails you the results. It can also be run from command line.
The output is by service and you can limit the output to one particular service. The subscripts which are responsible for the output, mostly convert the raw log lines in structured format.
Logwatch generally ignores the time component in the output, that means, you will know that the reported event was logged in the requested range of time, but you will have to go to the raw log files to get the exact details.
To fix this problem, we can install more using the command below.
sudo apt-get -y install logwatch
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install logwatch.
sudo apt -y install logwatch
Or if you have aptitude installed you can use the following command.
sudo aptitude install logwatch
Summary
In this tutorial we learn how to fix logwatch command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.