Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Flow records report data size in octets so internally opFlow is using octets everywhere.  Octets may not be the most useful unit to view flow data sizes so opFlow has configuration options to customize this.  

The default setting in opFlow looks like this:

Code Block
'opFlow' => {
  'opflow_byte_unit' => 'MB',
  'opflow_byte_unit_size' => '1048576',  # size of a "unit"
  'opflow_byte_unit_precision' => '3' # number of decimal places
} 

 

This configuration will summarize flows by MB where a MB is byte / (1024*1024) and it will report the values with 3 decimal places.  Keep in mind that the base unit all of these calculations are working off of is an octet (or byte, so 8 bits), so opflow_byte_unit_size is used like this:

Code Block
reported size = octets / 'opflow_byte_unit_size'

 

If you would like to have opFlow report in kbits you could do something like this:

Code Block
'opFlow' => {
 'opflow_byte_unit' => 'kbit',
 'opflow_byte_unit_size' => '128', # size of a "unit"
 'opflow_byte_unit_precision' => '3' # number of decimal places
}