syslog-ng--mainline: added support for logrotation in file sources
-e Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-148> Revision: syslog-ng--mainline--2.0--patch-148 Archive: devel@balabit.hu--other-1 Creator: Balazs Scheidler <bazsi@balabit.hu> Date: Fri Apr 6 11:08:49 CEST 2007 Standard-date: 2007-04-06 09:08:49 GMT Modified-files: ChangeLog src/affile.c src/afsocket.c src/logpipe.h src/logreader.c src/logreader.h src/messages.h New-patches: devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-148 Summary: added support for logrotation in file sources Keywords: 2007-04-06 Balazs Scheidler <bazsi@balabit.hu> * src/affile.c (affile_sd_open_file): new function, contains the file open code for the source driver, (affile_sd_notify): new function, registered as the notification handler for an affile source, for NC_FILE_MOVED notifications construct a new the log reader and drop the old one, (affile_sd_init): use affile_sd_open_file, (affile_sd_new): register notification handler, tell our LogReader the filename that we are following Diff stats: ChangeLog | 24 +++++++++++++++++++ src/affile.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++------ src/afsocket.c | 4 --- src/logpipe.h | 1 src/logreader.c | 54 ++++++++++++++++++++++++++++++++++++------- src/logreader.h | 1 src/messages.h | 2 - 7 files changed, 136 insertions(+), 20 deletions(-)
participants (1)
-
bazsi@balabit.hu