Reading Multiple Files Using Regex
Hi, I have multiple files... some-host:/some/path $ ls -l -rw------- 1 root root 90K Mar 3 11:37 mylogs-2011-03-03 -rw------- 1 root root 121 Mar 4 11:40 mylogs-2011-03-04 Can I read these files in the source driver with following source driver? source s_files{ file("/some/path/mylogs*"); }; I use SLES 11.0 and syslog-ng 2.0.9 Thanks and regards, Hidayath Saven Technologies: A leader in technology driven business solutions ---------------------------------------------------------------------------- ----------------------------------- #302, 3rd Floor, MyHome Sarovar Plaza, Hyderabad- 500 063, India Off: +91 040 23237303/7304 ext 115 email: hidayath.basha@saventech.com | www.saventech.com follow me: http://twitter.com/hidayath26 ---------------------------------------------------------------------------- -----------------------------------
On Fri, 2011-03-04 at 18:46 +0530, Hidayath Basha wrote:
Hi,
I have multiple files... some-host:/some/path $ ls -l -rw------- 1 root root 90K Mar 3 11:37 mylogs-2011-03-03 -rw------- 1 root root 121 Mar 4 11:40 mylogs-2011-03-04
Can I read these files in the source driver with following source driver?
source s_files{ file("/some/path/mylogs*"); };
I use SLES 11.0 and syslog-ng 2.0.9
Well, currently no. Although not regexps, but shell globs are supported by the Premium Edition of syslog-ng. (but your sample is a glob, and not a regexp anyway). -- Bazsi
participants (2)
-
Balazs Scheidler
-
Hidayath Basha