[syslog-ng]syslog-ng on Solaris
Matthew C Valites
mvalites@banta-im.com
Fri, 14 Jun 2002 11:51:16 -0400
I'm using syslog-ng over stunnel to log to a remote mysql database. I
have it working perfectly on all my linux machines, but when I attempt
to go over to Solaris, I run into problems. I have recompiled with the
"--enable-sun-streams" and "--enable-sun-door" and edited my conf file,
and this is the error I get when I try to run syslog-ng:
root@diamond: syslog-ng -Fv
do_init_afstreams_source: Cannot enable console logging on sun-stream
/var/log (Inappropriate ioctl for device)
Error initializing configuration, exiting.
This is my syslog-ng.conf file:
#
# Syslog-ng example configuration for for Debian GNU/Linux
#
# Copyright (c) 1999 anonymous
# Copyright (c) 1999 Balazs Scheidler
# $Id: syslog-ng.conf.sample,v 1.2 1999/11/15 12:30:41 bazsi Exp $
#
# Syslog-ng configuration file, compatible with default Debian syslogd
# installation.
#
options { sync(2);
time_reopen (10);
long_hostnames (off);
use_fqdn (no);
keep_hostname (yes);
#use_dns(yes);
};
###source lets your receive messages
source src { sun-streams("/var/log"); };
destination cron { file("/var/log/cron.log"); };
destination mail { file("/var/log/mail.log"); };
destination messages { file("/var/adm/messages"); };
destination sysmsg { file("/var/log/messages"); };
destination authlog { file("/var/log/authlog"); };
destination syslog { file("/var/log/syslog-ng"); };
destination local0 { file("/var/log/local0"); };
destination local1 { file("/var/log/local1"); };
destination local2 { file("/var/log/local2"); };
destination local3 { file("/var/log/local3"); };
destination local4 { file("/var/log/local4"); };
destination local5 { file("/var/log/local5"); };
destination local6 { file("/var/log/local6"); };
destination local7 { file("/var/log/local7"); };
destination staley { tcp("127.0.0.1" port(2220)); };
filter f_auth { facility(auth); };
filter f_kern { facility(kern); };
filter f_cron { facility(cron); };
filter f_mail { facility(mail); };
filter f_daemon { facility(daemon); };
filter f_local0 { facility(local0); };
filter f_local1 { facility(local1); };
filter f_local2 { facility(local2); };
filter f_local3 { facility(local3); };
filter f_local4 { facility(local4); };
filter f_local5 { facility(local5); };
filter f_local6 { facility(local6); };
filter f_local7 { facility(local7); };
filter f_emergency { level(emerg); };
filter f_info { level(info); };
filter f_alert { level(alert); };
filter f_notice { level(notice); };
filter f_warn { level(warn); };
filter f_crit { level(crit); };
filter f_err { level(err); };
filter f_debug { level(debug); };
filter f_syslog { level(info) and not facility(mail); };
#################################################################################
set up logging to a loghost (staley) forwarded from localhost via stunnel
# as defined at top of file:
# destination staley { tcp("127.0.0.1" port(2221)); };
################################################################################
#Logging to Paskow for testing purposes
log { source(src); filter(f_err); destination(staley); };
log { source(src); filter(f_notice); destination(staley); };
log { source(src); filter(f_alert); destination(staley); };
log { source(src); filter(f_mail); filter(f_info); destination(staley); };
log { source(src); filter(f_info); destination(staley); };
#Logging all local.debug to Paskow for testing purposes
log { source(src); filter(f_local0); filter(f_debug);
destination(staley); };
log { source(src); filter(f_local1); filter(f_debug);
destination(staley); };
log { source(src); filter(f_local2); filter(f_debug);
destination(staley); };
log { source(src); filter(f_local3); filter(f_debug);
destination(staley); };
log { source(src); filter(f_local4); filter(f_debug);
destination(staley); };
log { source(src); filter(f_local5); filter(f_debug);
destination(staley); };
log { source(src); filter(f_local6); filter(f_debug);
destination(staley); };
I had the doors option in the destination src, but there's no doors file
on my machine. I'd appreciate any help that anybody can provide. I
will be extremely grateful if this works.
~Matt Valites
Unix Admin
Banta-IM