Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing nfdump column names #59

Merged
merged 1 commit into from
Jul 17, 2020
Merged

Added missing nfdump column names #59

merged 1 commit into from
Jul 17, 2020

Conversation

jp-asdf
Copy link
Contributor

@jp-asdf jp-asdf commented Jul 16, 2020

Added missing nfdump column names to the nfdump_translation var and render_table function to fix a bug where some Statistics reports output was broken (missing half of the data when using order-by other then "Flows").

Bug: When running any of the "IP address" Statistics reports AND using any "Order by" method other than "Flows", half of the report output is missing. All data after the "Flows (%)" column is missing. When using"Order by = Flows" the report output is good and all columns are displayed correctly.

Cause: It appears that the nfdump csv output has different column names when using "-s ip/flows" report compared to when running a "-s ip/bytes" or other order-by method. Some of these column names are not defined in nfsen-ng/frontend/js/nfsen-ng.js in the "nfdump_translation" var.

NFDUMP columns returned when using -s 'ip/flows'
ts,te,td,pr,val,fl,flP,ipkt,ipktP,ibyt,ibytP,ipps,ibps,ibpp

NFDUMP columns returned when using -s 'ip/bytes'
ts,te,td,pr,val,fl,flP,pkt,pktP,byt,bytP,pps,bps,bpp

Fix: Add the missing fields "pktP" and "bytP" to the "nfdump_translation" var in nfsen-ng.js.

Added missing nfdump column names to the nfdump_translation var and render_table function to fix a bug where some Statistics reports output was broken (missing half of the data when using order-by other then "Flows").
@mbolli mbolli merged commit 3b43636 into mbolli:master Jul 17, 2020
@mbolli
Copy link
Owner

mbolli commented Jul 17, 2020

great addition, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants