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 04-13-2008, 11:40 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,419

Rep: Reputation: 55
How can I get yum to log to syslog?


How can I get yum to log to syslog?

Right now its logging to:
/var/log/yum.log

I want it to goto syslog

To syslog.conf I added:
yum.* /var/log/yum.log

but that doesn't see to be working.

Got any tips?

TIA
 
Old 04-14-2008, 06:24 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Quote:
Originally Posted by abefroman View Post
How can I get yum to log to syslog?
Yum logs to syslog by default, if I grep yum.log and messages I see all the ops logged in both w/o changing any configuration?


Quote:
Originally Posted by abefroman View Post
To syslog.conf I added:
yum.* /var/log/yum.log
That's not how it works. Syslog only works with facilities it knows about (and the generic LOCAL.* ones applications can use, often compile-time and sometimes config setting). Yum, using Pythons logging goes to /dev/log with a certain priority and that's how syslog picks it up. For more info on facilities and priorities see 'man syslog.conf'.
 
  


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 change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 03:27 AM
syslog client to log to syslog-ng and itself noir911 Linux - Server 1 02-08-2008 10:51 AM
Why syslog doesn't log? zivota Red Hat 3 11-01-2006 11:56 AM
/var/log/syslog George666 Slackware 4 03-19-2004 08:34 AM
re: where is /var/log/syslog ergo_sum Red Hat 10 11-04-2003 07:27 PM

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

All times are GMT -5. The time now is 11:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration