LinuxQuestions.org
Visit Jeremy's Blog.
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 09-24-2014, 02:27 PM   #1
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
rsyslog logging to /var/log/messages


I have 2 remote hosts sending apache_{error,access}.log files to the rsyslog-server, and that's all fine and good.

What I'm having trouble with is that the apache traffic on both hosts is sending the same traffic to /var/log/messages and /var/log/syslog on each respective host.

Since they are using the exact same watchfile.conf and exhibit the same behaviour, here's the /etc/rsyslog.d/watchfile.conf
Code:
$ModLoad imfile
# apache error.log
$RepeatedMsgReduction on
$InputFileName /var/log/apache2/error.log
$InputFileTag error:
$InputFileStateFile state_file_error_apache
$InputFileFacility local6
$InputRunFileMonitor
$InputFilePollInterval 10

# apache access.log
$InputFileName /var/log/apache2/access.log
$InputFileTag access:
$InputFileStateFile state_file_access_apache
$InputFileFacility local6
$InputRunFileMonitor
$InputFilePollInterval 10

if $programname == 'access' then @rsyslog-server:514
& ~
if $programname == 'errors' then @rsyslog-server:514
& ~
I changed InputFileFacility to local6 after reading this - no change.

I tried variations on
Code:
local4.=info /var/log/apache_error.log
& ~
local4.=error /var/log/apache_error.log
& ~
in /etc/ryslog.conf after adding
Code:
$InputFileSeverity info
to the watchfile.conf and restarted.
- didn't help.

Examined references are
http://kb.monitorware.com/post24302....licates#p24302
http://wiki.gentoo.org/wiki/Rsyslog#Local_Logging
https://access.redhat.com/discussions/650853
and several others.

Can someone put me out of my misery and point out the obvious?

Thanks.

Last edited by Habitual; 09-24-2014 at 02:31 PM.
 
Old 09-25-2014, 08:43 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374

Original Poster
Blog Entries: 37

Rep: Reputation: Disabled
Upgraded to rsyslogd 7.6.5 on CentOS 5.10

See signature about 'defaults'.
 
  


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
cron - Move logging from /var/log/messages WyattOil Linux - General 2 02-01-2014 08:21 PM
logging messages from my program doesn't reach /var/log/messages rajas Programming 4 09-18-2011 01:38 AM
Logging a to /var/log/messages using python heeman Linux - Newbie 1 03-25-2011 02:10 PM
segfaults are not logging into /var/log/messages ravikumarv Linux - General 1 12-10-2010 09:20 AM
Logging to /var/log/messages paddyjoy Programming 5 12-19-2005 07:01 AM

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

All times are GMT -5. The time now is 05:33 PM.

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