Results 1 to 2 of 2

Thread: Error in configuration of syslog-ng

  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    5

    Default Error in configuration of syslog-ng

    When I start syslog-ng, It show error:
    Error in configuration, unresolved source reference; source='src'

    This some content of /etc/init.d/syslog-ng

    ....
    log { source(src); filter(f_mail); destination(zmail); }; # zimbra
    destination local0 { file("/var/log/zimbra.log" owner("zimbra") ); }; # zimbra
    log { source(src); filter(f_local0); destination(local0); }; # zimbra
    log { source(src); filter(f_local1); destination(zmstats); }; # zimbra
    filter f_auth { facility(auth); }; # zimbra
    destination zmauth { file("/var/log/zimbra.log" owner("zimbra") ); }; # zimbra
    log { source(src); filter(f_auth); destination(zmauth); }; # zimbra

    If I comment all lines contain "source(src)", syslog-ng start OK. But log will not output to zimbra.log
    Help me resolve this issue.

    Thanks a lot
    Last edited by vulagio; 03-22-2010 at 12:29 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    Default

    I'm guessing you are hand editing your syslog-ng file?

    If so, you need to define the source called "src". You'll need a section in /etc/syslog-ng/syslog-ng.conf that looks like:

    Code:
    source src {
    	#
    	# include internal syslog-ng messages
    	# note: the internal() soure is required!
    	#
    	internal();
    
    	#
    	# the following line will be replaced by the
    	# socket list generated by SuSEconfig using
    	# variables from /etc/sysconfig/syslog:
    	#
    	unix-dgram("/dev/log");
    	unix-dgram("/var/lib/named/dev/log");
    
    	#
    	# uncomment to process log messages from network:
    	#
    	udp(ip("0.0.0.0") port(514));
    };

    Hope that helps,
    Mark

    P.S. There are several open bugs in bugzilla relating to the various syslog engines, and in those bugs are examples of working syslog-ng.conf files.

Similar Threads

  1. Ubuntu 8.04 Lts Zimbra 5.0.14 Ldap Problem
    By rkrojero in forum Installation
    Replies: 10
    Last Post: 04-21-2009, 12:58 AM
  2. Invert split domain configuration or stop it
    By fmodola in forum Administrators
    Replies: 0
    Last Post: 08-20-2008, 03:44 AM
  3. [SOLVED] Build Zimbra..a little problem...
    By Abdelmonam Kouka in forum Developers
    Replies: 33
    Last Post: 05-22-2008, 06:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •