SUSECON
Results 1 to 9 of 9

Thread: syslog-ng and filter

Threaded View

  1. #1

    syslog-ng and filter

    I have a problem with my sylog-ng config file. I declare following lines:
    Code:
    source s_router {
            udp( port(514) );
    };
    
    destination d_router02 {
            file("/var/log/router/10.0.0.10" owner(root) group(users) perm(0640));
    };
    
    destination d_router03 {
            file("/var/log/router/10.0.0.11" owner(root) group(users) perm(0640));
    };
    
    
    destination d_router01 {
            file("/var/log/router/10.0.0.9" owner(root) group(users) perm(0640));
    };
    
    filter f_router01 { host("10.0.0.9"); };
    filter f_router02 { host("10.0.0.10"); };
    filter f_router03 { host("10.0.0.11"); };
    
    log { source(s_router); filter(f_router01); destination(d_router01); };
    log { source(s_router); filter(f_router02); destination(d_router02); };
    log { source(s_router); filter(f_router03); destination(d_router03); };
    but the result is that i have no entrys in the log file.
    If i delete the filter(f_routerxx) entrys i have in all log files the same entrys!!

    [UPDATE]
    My System is SLES11 SP2
    [/UPDATE]
    Regards
    Dirk
    Last edited by krid; 18-Feb-2014 at 13:36. Reason: forgotten infos

Bookmarks

Posting Permissions

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