Comments (11)
Another funny fact: records does not explicitly says if they are ADD ou DEL event. [1]
One has to imply that by the presence (or absence) of flowStartMilliseconds
and flowEndMilliseconds
.
For ADD events, flow records comes with flowStartMilliseconds
field while for DEL events, flowEndMilliseconds
is available.
Nokia being Nokia.
from nfdump.
The Nokia nat records are now decoded in the master repo.
See also nfconf.dist
for a possible output format an nfdump(1) for the new definitions:
nfdump -r tmp -o 'fmt:%ts %te %flid %pr %sap -> %dap %isid %osid %nats'
The Nokia elements are listed in raw
, fmt
and json
As Nokia does not send NAT events for ADD/DELETE and uses different templates for each, there are no NAT event records available. To add them as a best guess of what was sent is too risky and may lead to unwanted results with data from other exporters. Therefore it is left to the user to evaluate correctly the appropriate events.
from nfdump.
@gabrielmocan I added another file from the vendor
- for ADD and DEl action Nokia had two different template set, snd page in attached document
- extract only IP address from type 93 proprietary field (source IP stored with LSN session number LSNxxx@ipaddress)
IPFIX-NAT_Logging V1.pptx
For my use case type 93 field extraction enough
from nfdump.
@anetrjuns this seems fine to me.
First entry is the ADD event, second entry is the DEL event.
You'll have to imply this logic wherever you're going to use these information.
from nfdump.
Thanks for the sample! I will check.
from nfdump.
Nokia being Nokia.
They're putting the pre-NAT IP address in a proprietary field...
from nfdump.
So it's about the 3 missing and Nokia specific elements? @anetrjuns, @gabrielmocan - as of NAT logging - does that work for you? Honestly, I don't see much NAT stuff thee?
from nfdump.
@phaag that's Nokia way of doing things. They always just ignore standards, most likely to sell their proprietary monitoring stuff.
But well, in regards to NAT logging, we would need 2 things:
- Imply if the flow record is a ADD or DEL event (based on the logic that I described in my previous message) to fill
natEvent
field; - Extract pre-NAT IP address that's stored within type 93 proprietary field -
aluNatSubString
.
@anetrjuns for your use case you would need types 91 and 92 fields? aluInsideServiceID
and aluOutsideServiceID
from nfdump.
@phaag can we have this extensions for go-nfdump
as well?
from nfdump.
@phaag can we have this extensions for
go-nfdump
as well?
Done!
from nfdump.
@phaag many thanks, unbelivable, it's working :)
Only one question about date/time
For the one flow we have duplicate entries: the first one has "Date first seen" filed with right value and 0-s for "Date last seen"
and for second one the values reversed.
Is this expected behaviour?
The screenshot is attached.
from nfdump.
Related Issues (20)
- sfcapd not acknowledging -W <Worker> HOT 3
- IPFIX (V10) support for dot1q VLAN IDs HOT 23
- Typo in IPFIX fields HOT 1
- nfdump default workers calculation on low-cpu systems HOT 1
- AS Information HOT 1
- PBlock variables are not printing properly with custom format.
- Bad magic 0x10CF HOT 4
- Runnng nfcapd/sfcapd simultaneously in WSL segfaults... HOT 8
- issues after upgrade - lz4 compression stopped working HOT 4
- nfdump - help/error text for compression argument HOT 1
- nfcapd 1.7.4 - Segmentation Fault HOT 1
- Missing json format in statistic mode HOT 4
- Missing output format for aggregation mode. HOT 3
- Invalid order in aggregation mode.
- IPv6/4 address aggregation errors HOT 2
- Aggregation - duplicate entries for router HOT 1
- Strange output for ip4 aggregation with ipv6 filter HOT 2
- nfdump repository HOT 1
- Error while loading shared libraries: libnffile-1.7.4.so: cannot open shared object file: No such file or directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfdump.