I'd like beaver to monitor /var/log
with the following concerns:
- applications will create arbitrary trees of logs under
/var/log
- I cannot know ahead of time what logs will be present under
/var/log
For instance, let's say I have an erlang application with lager logs to /var/log/erl_app/lags.log
, webmachine logs to /var/log/erl_app/webmachine/YEAR_MONTH_DAY_access
and a console log to /var/log/erl_app/console.log
. The webmachine logs are not rotated, but are rather created at midnight each day. The console and lager logs are rotated periodically. As I add apps to this erlang application they may begin logging under /var/log/erl_app
.
What I'd like to do is start beaver once, have it recursiely ship all the logs under /var/log
which presently exist and are created in the future. It seems to me that only the path configuration option will suit my needs as the files option assumes I know the filenames I want to ship.
Here's my beaver.conf: