[syslog-ng]Needed features: include statements and greater-than/less-than options for log level/priorities

Jesse Molina syslog-ng@lists.balabit.hu
Fri, 26 Nov 2004 23:40:47 -0700


Hi Bazsi

Your note on level/prio ranges is great!  I was not aware that was 
possible.  I will give that a try and suspect that it will meet my 
needs.  Thank you very much.

As for the include issue, I might have to do something like that as the 
config size grows.  Though, I wish I didn't have to.



Balazs Scheidler wrote:

> On Fri, 2004-11-26 at 07:38, Jesse Molina wrote:
> 
>>Greetings!
>>
>>I have looked for this information elsewhere but have not found it, thus 
>>I bring it to the community.
>>
>>I have two questions regarding the syslog-ng configuration file;
>>
>>#1.) Is there an "include" statement to grab additional configuration 
>>parameters, similar to httpd.conf or named.conf?  I suspect the answer 
>>is no.  I am responsible for a couple of syslog-ng implementations that 
>>have gotten to be huge and working with a single file is getting to be a 
>>problem.
> 
> 
> currently it is recommended to use some kind of preprocessor (for
> example cpp) .
> 
> 
>>
>>
>>#2.) I would like to state functions such as "greater than" and "less 
>>than" for logging levels/priorities.  This functionality is available in 
>>the BSD syslogd and some others, but I am not aware of any such thing in 
>>syslog-ng.  I can't imagine that this hasn't come up before.  To get 
>>around this, I made a an ugly 55-line syslog-ng configuration with 
>>filters to which I can reference, but I really don't want them all in my 
>>syslog-ng.conf, thus question number 1.
> 
> 
> it is possible to specify ranges like this:
> 
> filter f_pri { level(emerg..info); };
> 
> Does this solve your problem?
> 

-- 
# Jesse Molina
# Mail = jesse@opendreams.net
# Page = page-jesse@opendreams.net
# Cell = 1.407.970.0280
# Web  = http://www.opendreams.net/jesse/