
david at lang
Apr 4, 2012, 11:09 PM
Post #3 of 11
(523 views)
Permalink
|
|
Re: Best way to configure rsyslog as an aggregation center
[In reply to]
|
|
You won't be able to use the dynamic names for to deal with the hostname part since it's not a 1:1 mapping of host to file (I assume you have multiple things going to the routers file, and multiple going to dialup, etc) create your file template to include the severity in the filename and you will get the split that you are looking for. You should also think about upgrading, rsyslgo 4.6 is old enough that it's no longer really supported (except via a support contract or by RedHat) and there are a LOT of improvements in later versions David Lang On Thu, 5 Apr 2012, Radu Gheorghe wrote: > Hi Scott, > > Maybe dynamic file names would help: > http://wiki.rsyslog.com/index.php/Log_Router_syslog_with_Dynamic_File_Names > > 2012/4/5 Scott Baker <scott [at] perturb>: >> I work for an ISP and we have lots of equipment logging to a central >> rsyslog (4.6) server. We're upgrading to rsyslog 5.8 and I want to >> re-evaluate my configuration. Right now my config is full of things like: >> >> :FROMHOST, isequal, "router1" -?routers >> :FROMHOST, isequal, "10.45.0.7" -?dialup >> >> Etc... about 50 times. >> >> Ideally I'd like to more granular and say 10.45.0.7.warn goes to log #1 >> file, and 10.45.0.7.critical goes to log #2. Is there a better way to >> map different IPs to various log files? >> >> Lastly, if I have all that setup how do I get the local box that's >> running rsyslog to log to the various logs? When postfix or the kernel >> log a message it doesn't do it via IP so what should my rules match for >> that? >> _______________________________________________ >> rsyslog mailing list >> http://lists.adiscon.net/mailman/listinfo/rsyslog >> http://www.rsyslog.com/professional-services/ > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com/professional-services/ >
|