Supporting flow records without direction field (ingress/egress)
Description
There has been a number of reported cases where the netflow.direction field is not set for flows sent via Netflow v9.
Since we rely on this field to distinguish ingress vs egress, the traffic statistics generated by the REST API contain 0s for number of bytes transferred.
The null_value approach has one problem: the default value is applied when persisting in ES, the flow will not be classified or enriched because the direction is not set. So, it is probably the best way to enforce the default value when creating the FlowDocument instance.
Christian Pape August 1, 2018 at 6:37 AM
Yes, this will be my approach. Is there a chance to get template + data record without the direction set for setting up a basic test?
There has been a number of reported cases where the
netflow.direction
field is not set for flows sent via Netflow v9.Since we rely on this field to distinguish ingress vs egress, the traffic statistics generated by the REST API contain 0s for number of bytes transferred.