LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2017, 02:59 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
logwatch isn't report on apache


logwatch isn't report on apache:
Code:
[root@server etc]# logwatch --service http --output stdout 
[root@server etc]#
However other services are fine:
Code:
[root@server etc]# logwatch --service postfix --output stdout  |wc -l
80
and I have apache in /etc/httpd

If I specify the directory there are still no results:
Code:
[root@server httpd]# logwatch --service http --output stdout  --logdir /etc/httpd/logs/ 
[root@server httpd]#
It seems like it may not be finding log files, when I run it with --debug high:
Code:
Logfile Name: clamav
   Logfile = /var/log/clamav
   Archive = clamav.conf
   Archive = /var/log/clamav/clamd.log-20170101
   Archive = /var/log/clamav/clamd.log-20170108
   Archive = /var/log/clamav/clamd.log-20170115

...

Logfile Name: http
   001-*applyhttpdate = 
   000-*expandrepeats = 

Logfile Name: qmail-smtpd-current
   000-*applytaidate =
But they are definitely there:
Code:
[root@server logfiles]# ls -al /etc/httpd/logs/ |grep access
-rw-------  1 root   root     5727986 Mar  7 14:43 access_log
-rw-------  1 root   root     3213797 Feb 24  2016 access_log-20160224
-rw-------  1 root   root      895761 Mar 29  2016 access_log-20160329
[root@server logfiles]# ls -al /etc/httpd/logs/ |grep error
-rw-------  1 root   root    20993575 Mar  7 14:48 error_log
-rw-------  1 root   root    49616061 Mar  7 10:00 error_log.1
any ideas?

Last edited by abefroman; 03-07-2017 at 05:01 PM.
 
Old 03-11-2017, 05:45 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi Abe,

From the ArchWiki/Logwatch
Within the logfiles/ directory of any of the conf locations are config files detailing specific log files. By default, most of the common log files found in a Linux system are already accounted for. If you have some esoteric application that does not have a log file conf already, copy an existing one from the default.conf/logfiles/ directory and customize it for your application.

Do you have a logfile conf in you /etc/httpd/log directory ?
Just a suggestion but if you moved your log files to a more standard location.. /var/log/httpd for example, it might automatically pick them up.
Hope that helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logwatch detail output in report theblah Linux - Server 4 05-08-2012 04:40 AM
Logwatch Kernal Error Report RHEL 6 N3cTr0 Red Hat 1 05-19-2011 04:20 AM
logwatch report by hostname for syslogd server yip623 Linux - Server 1 08-07-2008 08:04 PM
wierd logwatch report for httpd GUIPenguin Linux - General 2 09-21-2005 10:55 PM
What does logwatch report mean? maxgg Linux - Newbie 2 12-05-2004 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration