On 01/10/2011 15:21, Tom Eastep wrote:
> 2) With the preceding change, the rules file now has 14 columns. That
> makes it awkward to specify the last column as you have to insert
> the correct number of '-' to get the right column.
>
> To make that easier, it is now allowed to terminate the
> column-oriented format with a semicolon (";"), and then specify
> addition columns using a column-name=value format. See
> http://www.shorewall.net/configuration_file_basics.htm#Pairs for
> details.
>
Before this is released could I ask you to look over the JSON syntax? eg
http://en.wikipedia.org/wiki/JSON
If I squint a bit I can kind of see that you are doing something quite
similar here and perhaps it's possible to re-use existing formats before
we re-invent a new format?
I haven't entirely thought this through, BUT what if the config file
looked a bit like a hybrid of the existing column orientated format, but
you can drop in a json snippet at the end of the line to set/override
any params? This seems equivalent to what you are already doing, but
with just a tiny change in syntax (semicolon becomes a { } pair and =
becomes : )
A potential side benefit would seem to be that you accidentally just
added input support for JSON ...
Note, based on my previous email I might come across as having a
particular preference towards json - it's not the case! This suggestion
is purely based on the similarity with what you are doing and an
existing config file format - reduction/re-use seems attractive!
Note, I'm assuming that this change causes little development effort -
I'm naively making the suggestion because at this stage it seems like
just a change in escape characters? Seems like getting the extra format
right at this stage prevents some pain later, hence hoping you will look
at this from all angles!
Cheers
Ed W
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users