Comments (4)
@thezoggy - thanks for your explanation! - I need to add, that theft2nfdump(1)
is unfortunately outdated.
Sice 1.7.x. nfdump no longer reads from stdin
. So the correct command line is:
% ft2nfdump -r ft-v05.2024-03-13.040001-0400 -z=lz4 -w ft-v05.2024-03-13.040001-0400.nf
% nfdump -r ft-v05.2024-03-13.040001-0400.nf
I need to correct the man page!
from nfdump.
nfdump is to read files stored in the nfcapd format... not read raw netflow files.
nfcapd = is the netflow collector which stores the flow records into files for nfdump..
which would explain why they arent in the correct 'format' hence your file doesnt have the expected magic bit set in it:
https://github.com/phaag/nfdump/blob/master/src/libnffile/nffileV2.h#L46
there are various tools to get data into nfdump formatted files if your not just sending the netflow to the box.
readpcap = load data via pcap
nfpcapd = create netflow data from interface or pcap data
ft2nfdump = converts flow-tools data into nfdump format.
-- from what you said this might be what you are looking for?
also its generally good practice when opening a github issue for an app is to share what version of the software / and info about your env (what os/how you running it).
taken from source forge page:
Converting flow-tools netflow data:
The flow-tools converter reads flow-tools data either from stdin, or from a given file ( -r ). It converts the data into nfdump format and writes nfdump records to stdout.
To concert a file:ft2nfdump -r <flow-tools-file> | nfdump -w <nfdump-file>
.
Of course you can supply any other nfdump command line switches to directly process flow-tools data with nfdump.
from nfdump.
Thank you both for your help! It works after I configure with the '--enable-ftconv' option and running the suggested ft2nfdump commands.
from nfdump.
Closing the issue now
from nfdump.
Related Issues (20)
- 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
- FYI : warning on compile time ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] HOT 1
- Format time Issue of Netflow data in NFDump HOT 4
- Request: Add TTL field HOT 7
- Typo in nfdump json output: observationDoaminID
- nfdump - Skip unknown record: #### type 13 HOT 3
- Organisation always showing not found HOT 3
- restore -o pipe? HOT 11
- Documentation on tcp_flags HOT 5
- Filter not working with sflow, but works fine with netflow HOT 4
- Bug : nfdump json -q segfault HOT 2
- Feature: add ndjson output HOT 17
- nfdump segfaults with ident filter expression HOT 3
- Segmentation fault while processing some packets (fragments?) HOT 2
- nfdump with geodb, nfprofile and nfsen - profile issue HOT 7
- nfdump filter src/dst geo issue with country codes that coincide with comparison operators HOT 2
- DEVEL feature triggers compilation error in nfdump.c
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.