LinuxQuestions.org
Help answer threads with 0 replies.
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 10-24-2009, 12:38 PM   #1
charlweed
Member
 
Registered: Jan 2005
Posts: 46

Rep: Reputation: 15
Configure rsyslog to filter all messages from kdm ?


I have a buggy KDM server, and it is filling my /var/log/messages log with junk.
Can I configure rsyslog to send all messages from kdm to a separate log file?

I tried RTFM and editing /etc/rsyslog.conf thusly:

kdm.* /var/log/kdm_custom.log

But ryslog complains that kdm is not a facility.

What to do?

Thanks!
 
Old 10-25-2009, 05:26 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403Reputation: 2403
Hi,

I'm not a KDE user, but a search came up with this:

Code:
KDM accepts two command line options related to logging:
 -debug <n> (druuna: not of interest for this thread, text removed)
 -logfile <file>
    <file> is the file to log various messages to. The default log file is
    /var/log/kdm.log. For internal reasons there is no option in kdmrc to
    permanently specify the log file location. If you redirect KDM's
    standard error output to a file, KDM will log there.
    If KDM is configured to use syslog (and it _very_ probably is on any
    modern system), all internally generated messages are logged to the
    "daemon" facility. The log usually can be found in /var/log/debug.log
    and /var/log/daemon.log; make sure that daemon.* is logged (look at
    /etc/syslog.conf).
All this comes from: developer.kde.org (halfway down the page, the "It doesn't work!!" section).

BTW: Wouldn't it be a better idea to solve the issues (why is kdm sending so many log messages, can you solve this).

Hope this helps.
 
Old 10-25-2009, 05:27 AM   #3
thegeek
Member
 
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
I think KDM logs to the daemon.* syslog facility
 
  


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
How to filter PA/module-alsa-sink.c messages from syslog sixerjman Linux - Software 2 05-05-2009 09:06 AM
Configure failover for rsyslog kenneho Linux - Server 1 01-28-2009 07:39 AM
Weird Error Messages With KDM or XDM Woodsman Slackware 8 12-18-2008 11:52 PM
INACTIVE firewall blocks my rsyslog messages tbergfeld Fedora 0 06-26-2008 04:52 AM
filter /etc/messages for certain IP table entries don_wombat Linux - Software 0 12-14-2004 03:45 PM

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

All times are GMT -5. The time now is 07:48 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