LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-30-2012, 01:55 PM   #1
forrie
Member
 
Registered: Sep 2003
Distribution: RedHat
Posts: 32

Rep: Reputation: 15
Bizarre syslog problem


The package sysklogd has not changed - but recently, without changes to the /etc/syslog.conf file, my data for local6.* and local4.* are showing up in /var/log/messages. They weren't before, and I can't seem to figure out why. Version info:

Name : sysklogd
Arch : x86_64
Version : 1.4.1
Release : 46.el5
Size : 125 k
Repo : installed


This is on RHEL 5.7. The syslog.conf file (with whitespace removed):

Quote:
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
local4.* /var/log/puppet/puppet.log
local6.* /local/log/firewall/firewall.log
I rebooted the system just now and the phenomenon is still happening.

It first showed up when I was reviewing our firewall logs -- the Cisco ASA is configured to send to "facility 22" (local6) -- that had not changed, either... I had noticed really huge /var/log/messages files and the configured location was empty.

Have I hit a bug?

Yes, I realize rsyslog and syslog-ng may be superior, but I want to fix this bug before introducing more variables :-)


Thanks.
 
Old 01-30-2012, 02:25 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,857

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
"bizarre problem" tends to mean "thing I don't understand" ;-)

your config matches exactly with what you say is happening. All info level messages are clearly configured to be sent to /var/log/messages. I see nothing "phenomenonal" in any way at all.
 
Old 01-30-2012, 02:27 PM   #3
forrie
Member
 
Registered: Sep 2003
Distribution: RedHat
Posts: 32

Original Poster
Rep: Reputation: 15
I don't understand how this could be working for months, and then suddenly change. So, I can only assume there was/is a bug somewhere.

But shouldn't this also log *.info and local6.* to the defined locations or is this a first-match scenario?

I looked at the syslog.conf manpage, and I don't see an easy way to negate *.info from the LocalX facilities I configured. More impetus for me to consider a different syslog engine for that type of granularity :-)
 
Old 01-30-2012, 02:31 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,857

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
it should log it to all appropriate destinations yes, but then you didn't mention that that wasn't happening originally. Do you know that the facilities are actually what you want them to be?
 
Old 01-30-2012, 02:33 PM   #5
forrie
Member
 
Registered: Sep 2003
Distribution: RedHat
Posts: 32

Original Poster
Rep: Reputation: 15
I posted the config. What originally alerted me to this were gazillions of Cisco firewall logs going to /var/log/messages and not to the location I defined /local/firewall/log/firewall.log where it has been going all along. In this scenario, the data are going to /var/log/messages and not to their named destinations otherwise....

I made sure the whitespace between the LHS and RHS are tabs, too. Restarted syslogd, no luck.
 
Old 01-30-2012, 02:36 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,857

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
OK, well if they are coming in from IOS boxes, my angle to investigate would be a tcpdump on port 514 and see what the facility of the UDP traffic is listed as. I think a -v on tcpdump will show this, if not tshark / wireshark will.
 
Old 01-30-2012, 02:37 PM   #7
forrie
Member
 
Registered: Sep 2003
Distribution: RedHat
Posts: 32

Original Poster
Rep: Reputation: 15
I verified the config and it hasn't been changed, it's still "facility 22" which in IOS is LOCAL6. Also, the puppet logs, which were working fine, are also being shipped to /var/log/messages.
 
Old 01-30-2012, 02:42 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,857

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
right, but I didn't mention the config. Is the traffic clearly on the right facility as the UDP packets hit you?

(btw, just install syslog-ng)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bizarre Firefox problem gd2shoe Linux - Software 7 11-02-2007 07:45 PM
Bizarre routing problem Doug Melvin Linux - Networking 1 10-28-2004 12:04 PM
bizarre permission problem niehls Linux - General 1 10-30-2003 01:17 PM
Bizarre CD problem masterJ Slackware 9 07-02-2003 08:31 AM
a Bizarre problem seemed to be..... yunxiang Linux - General 2 02-06-2003 04:49 AM


All times are GMT -5. The time now is 02:40 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration