[syslog-ng] Problem with source File and destination File

Daniel Fritz GCA-FRITZ at web.de
Mon Nov 14 16:46:14 CET 2005


Hello, 

I wrote for testing a small shell script witch put every second a line with the same information into a file called "imperator.log". 

I would like to take the file thrue syslog-ng and write it into a destination file but it did not work ... has somebody a hint ? 

This is my configfile : 

 options {
    sync (256);
    time_reopen (10);
    log_fifo_size (4096);
    long_hostnames (off);
    use_dns (no);
    use_fqdn (no);
    create_dirs (no);
    keep_hostname (yes);
};

source s_test {
    file ("/tmp/imperator.log");
    internal();
};

destination d_test { file("/var/tmp/testreceive.log"); };
destination d_msg  { file("/tmp/$HOST-messages-$MONTH-$YEAR"
owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes));
};


#log { source(s_sys); filter(f_filter1); destination(d_cons); };
# log { source(s_sys); filter(f_filter2); destination(d_mesg); };
# log { source(s_sys); filter(f_filter3); destination(d_auth); };
# log { source(s_sys); filter(f_filter4); destination(d_mail); };
# log { source(s_sys); filter(f_filter5); destination(d_mlal); };
# log { source(s_sys); filter(f_filter6); destination(d_spol); };
# log { source(s_sys); filter(f_filter7); destination(d_boot); };
# log { source(s_sys); filter(f_filter8); destination(d_cron); };
log { source(s_test); destination(d_msg); };


Thx Daniel
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



More information about the syslog-ng mailing list