[Bro-Dev] #912: Need option for ASCII logging writer to only print CSV header line

Bro Tracker bro at tracker.bro-ids.org
Wed Oct 31 01:54:59 PDT 2012


#912: Need option for ASCII logging writer to only print CSV header line
------------------------------+-------------------------------
  Reporter:  carsten          |      Owner:
      Type:  Feature Request  |     Status:  new
  Priority:  Normal           |  Milestone:  Bro2.2
 Component:  Bro              |    Version:  git/master
Resolution:                   |   Keywords:  logging csv ascii
------------------------------+-------------------------------

Comment (by carsten):

 ok, I see the idea of using "config" table.

 But I checked the source code and it is not obvious to me how to use it.
 It seems the feature of the config table is there, but none of the current
 writers actually use it, so I'm missing a template from where I could
 learn.

 a) Could you please give a short code snippet on how best to check if a
 config option is set to a specific value, like "if option_key is in config
 table and option_value equals xyz then ...". I'm not sure if one must
 check the type of option key/value as well before using it.

 b) Do you have a naming scheme in mind on how to name options and values?
 If this will be the first implementation, it will set a kind of standard
 for others to follow. I would currently think to follow Bro Scripting
 Conventions, for the key use Variable Naming, i.e. Lower-cased with
 underscores, for values use Enum Naming, i.e. Upper-cased with
 underscores.
 The example would be: key: only_single_header_row, value: T or F.

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/912#comment:5>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list