Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.