Hi.
In fact even with the current implementation you can do that.
Because i needed something similar what i did, was to make a script that
autocreated the file list.
But with this approach you have three problems.
1) If you have more than 100 files to monitor, you must recompile rsyslog
2) Depending on the appending frequency of the files, performance may be
really bad.
3) You cannot monitor files that are created dynamically.
If you want, you can test the module that Rainer mentioned and give me
some feedback :>
Subject:
Re: [rsyslog] Transfer Multiple Files To A Centralized Logging Server
From:
"Rainer Gerhards" <[email protected]>
Date:
Mon, 7 Mar 2011 12:50:08 +0100
To:
"rsyslog-users" <[email protected]>
This is unfortunately currently not supported by rsyslog. But a refactoring
of imfile is underway that will support it -- but that probably needs a few
weeks before it becomes generally available:(
Rainer
-----Original Message-----
From:[email protected] [mailto:rsyslog-
[email protected]] On Behalf Of Hidayath Basha
Sent: Monday, March 07, 2011 11:42 AM
To:[email protected]
Subject: [rsyslog] Transfer Multiple Files To A Centralized Logging Server
Hi,
I am new to rsyslog. I used syslog-ng for a week. In syslog-ng 2.0.x I was
trying to send multiple files with a single source file driver.
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
In the conf file....
source s_files{
file("/some/path/mylogs*");
};
How can I do it with rsyslog? Please point me to some documentation
Thanks and regards,
Hidayath
_______________
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com