[syslog-ng] filter by date?
scarter at micron.com
scarter at micron.com
Mon Sep 12 20:59:04 CEST 2005
hello,
Is it possible to setup up a filter match based on variables for date?
example thinking...
filter f_date { match($YEAR-$MONTH-$DAY.*); };
#log the files
log { source (s_udp); filter(f_date); destination(messages); };
# set it up
destination hosts {
file("/syslog/NT-SYSLOG/HOSTS/$HOST/$MONTH-$DAY-$YEAR"
owner(root) group(root) perm(0644) dir_perm(0755)
create_dirs(yes)
);
};
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20050912/f07b1a3e/attachment.htm
More information about the syslog-ng
mailing list