Ubuntu Server 11.x / missing log-files (messages,daemon)
Everything outputs to the general syslog daemon, and then syslog splits various types of logging into various files based on "selectors": the facility that originated the message, and the priority (log type) of the message. These rules are in*/etc/syslog.conf:
# 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.* * * * * * * * * * * *-/usr/local/psa/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.loglocal7.* * * * * * * * * * * * */var/log/boot.log
Look in the manpage for more information.
If you want a specific type of log to exist, define it. If you don't know the name of the facility, activate a log for all facilities and look for the log messages that you're concerned with, and steal that value out of it.
I'm sure that hardcore fanatics would also push the use of strace to manually trace through the program to find the syslog calls.
Dustin Oprea
On Thu, Feb 23, 2012 at 9:06 AM, franz.reitinger <franz.reitinger@htl-wels.at> wrote:
Hi,
after upgrading from Ubuntu 10 to 11 several log-files like messages.log or daemon.log have disappeared 'smoothly'.
Asking Google I learned that some logger are no long supported and some additional configuration has to be done in /etc/rsyslog.d/50-default.conf. After enabling the 'daemon.log' I restarted the log-service to see why the openvpn-server is not working. In the former Ubuntu-version (10) openvpn (and other daemons) wrote its logging to the daemon.log. Even tough I enabled the daemon logging openvpn still refuses to log. Generally it remains the questions where the log output of all the daemons can be found (syslog?). How can I 'persuade' daemons like openvpn to use now the rsyslog?
ThanX
/franzR
/* ************************************************** **********
* Mail checked by Avira virus scanner (mail.htl-wels.at).
************************************************** **********
*/
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|