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

Robert.Becker at motoristsgroup.com Robert.Becker at motoristsgroup.com
Mon Nov 14 16:54:46 CET 2005





You cannot use a growing log file as a source for syslog-ng. You must tail
that log file to a pipe and have syslog read the pipe.  Not the prettiest
solution, but to my knowledge the only way to make it work.

-Rob


                                                                           
             Daniel Fritz                                                  
             <GCA-FRITZ at web.de                                             
             >                                                          To 
             Sent by:                  syslog-ng at lists.balabit.hu          
             syslog-ng-bounces                                          cc 
             @lists.balabit.hu                                             
                                                                   Subject 
                                       [syslog-ng] Problem with source     
             11/14/2005 10:46          File and destination File           
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
             Syslog-ng users'                                              
              and developers'                                              
               mailing list                                                
             <syslog-ng at lists.                                             
                balabit.hu>                                                
                                                                           
                                                                           





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

_______________________________________________
syslog-ng maillist  -  syslog-ng at lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html




**********************************************************************
The information contained in this message is confidential and is
intended for the addressee(s) only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Motorists Insurance Group will not be liable for direct, special, indirect or consequential damages arising from the alteration of the contents of this message by a third party or as a result of any virus being passed on.

**********************************************************************


More information about the syslog-ng mailing list