We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61ee7b commit 72d6c78Copy full SHA for 72d6c78
netflowwriter.py
@@ -214,8 +214,8 @@ def _get_data(buffer):
214
f.data["IN_BYTES"],
215
f.data["PROTOCOL"],
216
f.data.get("DIRECTION", DIRECTION_INGRESS),
217
- f.data["L4_DST_PORT"],
218
- f.data["L4_SRC_PORT"],
+ f.data.get("L4_DST_PORT", 0), # sometimes ports are not available: https://github.com/grafolean/grafolean/issues/13
+ f.data.get("L4_SRC_PORT", 0),
219
f.data["INPUT_SNMP"],
220
f.data["OUTPUT_SNMP"],
221
address_family,
0 commit comments