syslog-ng problem
joe10001_at_hotmail.com
Date: 04/02/05
- Next message: bi-weekly: "A new reader? Welcome to comp.os.linux.setup, read this first if you're new here (FAQ)"
- Previous message: Cajman: "Re: help w/ mandrake iso's install"
- Next in thread: Keith Keller: "Re: syslog-ng problem"
- Reply: Keith Keller: "Re: syslog-ng problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 1 Apr 2005 14:56:36 -0800
Hi all,
I recently install syslog-ng on a dedicated server to centralize all
the logs from my other servers through it. I configure the
syslog-ng.conf file and for the moment I can only have the logs on the
machine itself. But when I restart my syslog-ng server to get those
from remote host (tcp), I'm getting the following error :
--------------------------------------------------------------------------
syslog:/etc/syslog-ng# /etc/init.d/syslog-ng restart
Stopping system logging: syslog-ngstart-stop-daemon: warning: failed to
kill 178: No such process
.
Starting system logging: syslog-ngio.c: bind_inet_socket() bind failed
192.168.0.12:514 Cannot assign requested address
Error initializing configuration, exiting.
---------------------------------------------------------------------------
I configure all the thing as I needed to. I even put the "-r" in the
sysklogd daemon. I have no firewall installed on the machine.
I think all the syntax is fine. Do I need to do something on the remote
host (192.168.0.12) for listening on the port 514 ?
Here is my syslog-ng.conf file to give you a better idea
# Cental syslog-ng server
# 30/04/2005
#------------------------------------------------------
# Global Options
#------------------------------------------------------
options {
long_hostnames(on);
sync(0);
keep_hostname(yes);
stats(3600);
use_dns(yes);
use_fqdn(yes);
dns_cache(yes);
chain_hostnames(no);
};
#------------------------------------------------------
# Data Sources
#------------------------------------------------------
source local {
unix-dgram("/dev/log");
internal();
};
#I tried with the UDP protocol too
source ftp {
tcp(ip(192.168.0.12) port(514) max_connections(100));
};
#------------------------------------------------------
# Destinations
#------------------------------------------------------
destination hosts {
file ("/var/log/test/$HOST/$FACILITY"
owner("root") group("root") perm(0600) dir_perm(0700)
create_dirs(yes));
};
#------------------------------------------------------
# LOGS
#------------------------------------------------------
log { source(ftp);
destination(hosts);
};
log { source(local);
destination(hosts);
};
#-------------------FIN-----------------
Any comments would be greatly appreciated
tyvm
joe
- Next message: bi-weekly: "A new reader? Welcome to comp.os.linux.setup, read this first if you're new here (FAQ)"
- Previous message: Cajman: "Re: help w/ mandrake iso's install"
- Next in thread: Keith Keller: "Re: syslog-ng problem"
- Reply: Keith Keller: "Re: syslog-ng problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|