Questions tagged [logwatch]

A utility for monitoring server logs. (https://help.ubuntu.com/community/Logwatch)

Logwatch is a toolset for monitoring periodic changes that occur in a system's log files, it takes these changes and attempts to produce a much more digestible report of what are hopefully the most interesting events.

The toolset is written in and is typically fired by on a daily basis to provide the report in an email.

The way that logwatch is configured means that it can provide support for many log file types and locations out of the box. Configuration and extendibility is very modular where every service that is to be monitored has a perl script that does the specific filtering, and a .conf to provide high level control of verbosity, specific features and what log file is to be referenced. Similarly each referenced log file has a .conf file that provides details of its possible location, archives, format, and what is to be filtered out. Default versions of these files are in a central location (typically /usr/share/logwatch) and specific config is done by providing override files in /etc/logwatch.

External links

16 questions
3
votes
2 answers

Have logwatch send reports only once a week

I would like to lessen the noise from logwatch reports sent to my email on three systems. Is it possible by to configure logwatch to send only some days in the week, or once a week? More relevant…
somethingSomething
  • 5,721
  • 18
  • 58
  • 98
2
votes
1 answer

What is an "unmatched entry" in the context of logwatch?

I have **Unmatched Entries** in my logwatch report emails. For example: --------------------- SSHD Begin ------------------------ [...] **Unmatched Entries** drop connection #2 from [111.216.209.5]:55152 on [192.168.0.88]:22 past MaxStartups : 1…
303
  • 145
  • 7
2
votes
1 answer

cron script cannot find logwatch and chkrootkit

I have an issue that has probably something to do with the PATH variable. This is a email I got with error about a script running in cron: Cron Daemon 05:08 (15 hours ago) to root, bcc: me mail: Null message body; hope…
somethingSomething
  • 5,721
  • 18
  • 58
  • 98
2
votes
0 answers

Why is denyhosts not banning *some* brute force root SSH login attempts?

I recently noticed in my logwatch emails from a couple of servers that although denyhosts was doing its job for some brute force root ssh login attempts others seem to be ignored and continue to pester SSH with 1000s of attempts per day. I have…
DanSut
  • 592
  • 4
  • 14
1
vote
1 answer

How can I exclude proftp authentication failure messages from logwatch?

I use logwatch on my server, now I get thousands of these lines in the report email: --------------------- pam_unix Begin ------------------------ proftpd: Unknown Entries: check pass; user unknown: 339 Time(s) authentication…
rubo77
  • 27,777
  • 43
  • 130
  • 199
1
vote
2 answers

Logwatch not sending email

I'm trying to send logs to my email. I'm doing this via SSH. I edited the file: /usr/share/logwatch/default.conf/logwatch.conf and edited these lines: Output = mail Format = html Encode = none MailTo = [email protected] I have tried: sudo…
LtMuffin
  • 113
  • 1
  • 7
1
vote
0 answers

Delay in logwatch sending results as an email

I have set up a dual server email system using Debian. One server is active, the other just syncs all the email data in case of a server failure. Everything is working very well, but I notice a very strange behavior. The backup server has a…
1
vote
1 answer

Dubious entry in logwatch

Today I found the following in the daily logwatch of my debian server: --------------------- Connections (secure-log) Begin ------------------------ **Unmatched Entries** sg: user 'root' (login '???' on ???) returned to group 'root': 1…
ma0ho
  • 199
  • 1
  • 4
1
vote
2 answers

logwatch shows wrong temperature

I am using the logwatch application and I note that the smartd deamon return wrong information: the temperature is not displayed in Celsius degree ! Is it a smartd problem or a logwatch problem ? Is is possible to change the display…
Bertaud
  • 245
  • 1
  • 3
  • 12
1
vote
1 answer

How to make Logwatch track git commits

I have a webserver with a git repo containing a website. I have made a CMS using PHP where PHP automatically commits to git when files are changed. I would like to track these commits (preferably in a form close to git log --name-status to show…
cmeeren
  • 175
  • 4
0
votes
0 answers

Why does Logwatch seem to skip Sundays

I searched for [logwatch] skip and [logwatch] sunday and found nothing useful. I have a handful of servers that email me logwatch reports daily. All servers send me email every day. Except, on Sundays, only some servers send emails. Many of the…
Satya
  • 101
  • 3
0
votes
1 answer

How to run logwatch and tell to email me manually?

I am running /usr/sbin/logwatch and it prints it output to stdout. Why if MailTo parameter is set in config file. If I do /usr/sbin/logwatch --mailto MYEMAIL it works, but why? What is the purpose of MailTo config parameter then?
Dims
  • 3,181
  • 9
  • 49
  • 107
0
votes
2 answers

LogWatch filtering rule for dovecot’s sieve not applied

I have Debian 10 (Buster) installed with dovecot, sieve and logwatch. In my sieve file I have rules with discard. As a consequence I get plenty of the following lines in my syslog file. Nov 2 19:46:17 xxxxx dovecot:…
chmike
  • 211
  • 3
  • 10
0
votes
1 answer

logwatch with systemd/journald

OS: Ubuntu 20.04.1 LTS logwatch 7.5.2-1ubuntu1 I have following config for logwatch: /etc/logwatch/conf/logwatch.conf Output = mail Detail = high MailFrom = logwatch Range = yesterday Service = All /etc/logwatch/conf/logfiles/null.conf LogFile =…
John Siu
  • 4,695
  • 2
  • 25
  • 22
0
votes
1 answer

Send specific log with specific pharse to my mail

I want to send specific log which has specific phrase to my mail. For example: ERROR LOG SOMETHING.COM IP XX.XXX.XXX.XXX PORT:2343 Bad XXXXXXX And if upper log has phase SOMETHING.COM, send me this log to email. Is it possible in logwatch or…
debek
  • 237
  • 1
  • 3
  • 13
1
2