LinuxQuestions.org
Review your favorite Linux distribution.
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 01-09-2004, 11:43 AM   #1
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
pppd logging to /var/log/ppp.log problem


I am trying to make pppd log to /var/log/ppp.log thorugh syslog:

Here is info:

Code:
root@gateway:/etc/ppp# tail /var/log/messages
Jan  9 11:40:15 gateway chat[2019]: ^M
Jan  9 11:40:15 gateway chat[2019]: +ER: LAPM^M
Jan  9 11:40:15 gateway chat[2019]: ^M
Jan  9 11:40:15 gateway chat[2019]: CONNECT
Jan  9 11:40:15 gateway chat[2019]:  -- got it
Jan  9 11:40:15 gateway pppd[2017]: Serial connection established.
Jan  9 11:40:15 gateway pppd[2017]: Using interface ppp0
Jan  9 11:40:15 gateway pppd[2017]: Connect: ppp0 <--> /dev/modem
Jan  9 11:40:20 gateway pppd[2017]: local  IP address xx.xxx.xxx.xxx
Jan  9 11:40:20 gateway pppd[2017]: remote IP address xxx.xxx.xxx.xxx

root@gateway:/etc/ppp# tail /var/log/ppp.log

root@gateway:/etc/ppp# cat /etc/syslog.conf
# /etc/syslog.conf
# For info about the format of this file, see "man syslog.conf"
# and /usr/doc/sysklogd/README.linux.  Note the '-' prefixing some
# of these entries;  this omits syncing the file after every logging.
# In the event of a crash, some log information might be lost, so
# if this is a concern to you then you might want to remove the '-'.
# Be advised this will cause a performation loss if you're using
# programs that do heavy logging.

# Uncomment this to see kernel messages on the console.
#kern.*                                                 /dev/console

# Log anything 'info' or higher, but lower than 'warn'.
# Exclude authpriv, cron, mail, and news.  These are logged elsewhere.
*.info;*.!warn;\
        authpriv.none;cron.none;mail.none;news.none;pppd.log     -/var/log/messages

# Log anything 'warn' or higher.
# Exclude authpriv, cron, mail, and news.  These are logged elsewhere.
*.warn;\
        authpriv.none;cron.none;mail.none;news.none;pppd.none   -/var/log/syslog

# Debugging information is logged here.
*.=debug                                                -/var/log/debug

# Private authentication message logging:
authpriv.*                                              -/var/log/secure

# Cron related logs:
cron.*                                                  -/var/log/cron

# Mail related logs:
mail.*                                                  -/var/log/maillog

# Emergency level messages go to all users:
*.emerg                                                 *

# This log is for news and uucp errors:
uucp,news.crit                                          -/var/log/spooler
# Uncomment these if you'd like INN to keep logs on everything.
# You won't need this if you don't run INN (the InterNetNews daemon).
#news.=crit                                     -/var/log/news/news.crit
#news.=err                                      -/var/log/news/news.err
#news.notice                                    -/var/log/news/news.notice

pppd.*                                          -/var/log/ppp.log
This seems like it should work from the syslog.conf man page. What am I donig wrong? Thanks

---- Update ----
I have now added pppd.none to the files above. Now, no messages show up in /var/log/messages, but no messages are showing up in /var/log/ppp.log either? Frustrating...

Last edited by mrtwice; 01-09-2004 at 11:51 AM.
 
Old 01-10-2004, 05:38 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
> pppd.* -/var/log/ppp.log

Can you use pppd as a facility?

I think there are a few different syslogd daemons, but on mine only auth, authpriv, cron, daemon, kern, lpr, mail, mark, news, security (same as auth), syslog, user, uucp, and local0 through local7 can be used where you used pppd.

pppd has a "logfile" option that could be used to achieve what you're trying to do.

Lyle
 
1 members found this post helpful.
  


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
weird stuff in /var/log/auth.log bschiett Linux - Security 3 03-12-2005 08:29 AM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 12:29 AM
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 01:21 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM


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