config file format

This is the place for developers to discuss bugs, new features and everything else about code changes.

config file format

Postby rgerhards on Thu Sep 06, 2007 4:18 pm

This thread may host all comments and discussions about the new config file format. A good starting point for readers is my blog post at

http://rgerhards.blogspot.com/2007/09/r ... again.html

Please post your opinion or let me know it via some other way. Everyone's opinion is vitally important to steer the rsyslog project into the right direction!

Thanks,
Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1492
Joined: Thu Feb 13, 2003 11:57 am

Postby murdegern on Thu Sep 06, 2007 5:38 pm

Hi,

I'm not (yet) really a user of rsyslogd - right now, I'm using syslog-ng - but I consider
switching to rsyslogd because I like sticking to RFCs and I hope very much that
built-in encryption will some day be realized (yes, I know about ssh tunneling, and
I'm using it, but sometimes the tunnels die and messages get lost).

To the point.

I whole-heartedly agree with your preference of a programming-language-like
approach. XML is a real pain to use in configuration files IMHO. The first sample
looks very good to me.

The BASIC-like approach, well, I'm not exactly a BASIC fan.

The C-like approach is ok, too, but you have to do a lot of cross-reading. I could
also imagine config files getting cluttered after a few changes.

So, my vote would be for the first sample of the programming-language-like approach.

Regards,
Torsten
murdegern
New
 
Posts: 1
Joined: Thu Sep 06, 2007 5:27 pm

Postby sur5r on Sun Sep 30, 2007 4:45 pm

I'd like to vote in favor of the programming-language-like format.

XML is too bloated to be written by humans IMHO.

Apart from that: There should be some compatibility-layer for reading standard syslog.conf files so that it is still possible to use rsyslog as a drop-in replacement for stock syslogd.

Regards,
sur5r
sur5r
Avarage
 
Posts: 11
Joined: Sun Sep 30, 2007 4:35 pm

Postby rgerhards on Mon Oct 01, 2007 8:19 am

sur5r wrote:Apart from that: There should be some compatibility-layer for reading standard syslog.conf files so that it is still possible to use rsyslog as a drop-in replacement for stock syslogd.


That's definitely true. Whatever the new format will be, rsyslog will *also* be able (by default) to read old-style config files. This is also useful for simple setups (which are the most common ones), where the old-style config file is a very easy, well known and efficient way to do things...

Thanks for pointing this out.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1492
Joined: Thu Feb 13, 2003 11:57 am

Re: config file format

Postby ruskie on Tue Jun 17, 2008 8:25 am

I'd vote for metalog format but the first sample for the programing one is good as well. Maybe look into a sieve-like format as well?
ruskie
New
 
Posts: 5
Joined: Tue Jun 17, 2008 7:54 am

Re: config file format

Postby hkspvt on Mon Jul 28, 2008 5:06 pm

Another vote for the first programming-language sample.

XML works well for a lot of things, but it's a pain in the ass for configuration files. This sample is clear and easy to read for a non-programmer like myself. The BASIC- and C-style samples are too cryptic and use too many extraneous characters.

-HKS
hkspvt
Frequent Poster
 
Posts: 83
Joined: Thu Jun 26, 2008 6:31 pm

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron