logstash-plugins / logstash-codec-netflow

Apache License 2.0
78 stars 88 forks source link

Allow users to suppress/process empty IPFIX packets #207

Open edmocosta opened 8 months ago

edmocosta commented 8 months ago

It's not uncommon for a few Cisco IPFIX devices to send packets with flow length equals to 4, which essentially is the size of the Flow Set ID + Flow Set length frames, leaving the information/data somehow empty/malformed.

The current behavior is to ignore such packets and log the warning message - as reading them fails due to this record definition constraint, flooding the logs with invalid packet messages (Invalid netflow packet received (value '4' not as expected for obj.records[0].flowset_length)).

Allowing users to disable such warnings, or even processing the received empty events, using the flow set to fill the default properties, would be a nice addition to this codec.