Giter Site home page Giter Site logo

Comments (6)

chrispassas avatar chrispassas commented on June 3, 2024 1

@gabrielmocan The project I originally created this for hasn't needed another version of nfdump so I haven't worked on this in a while.

If you can generate a sample of nfdump 1.7 output I'll take a look and see if I can figure out what changed and support it. If you want to make a pull request thats welcome also.

In the past it was a combination of looking at nfdump source code, and text output/trial error to determine the correct way to read the file.

from nfdump.

chrispassas avatar chrispassas commented on June 3, 2024 1

@gabrielmocan OK I found something if you want to dig into this.

When I original here are some pointers on how I approached it.

Now I see a new .h file for layout 2 here
https://github.com/phaag/nfdump/blob/master/src/lib/nffileV2.h#L43

Take a look at that and see if you can make sense of it. I would be the new file format at least the "magic" and "version" are the same but from that point on its possible there could be differences.

from nfdump.

gabrielmocan avatar gabrielmocan commented on June 3, 2024 1

I'm closing this issue as now we have https://github.com/phaag/go-nfdump to decode v2 files.

from nfdump.

gabrielmocan avatar gabrielmocan commented on June 3, 2024

@chrispassas thank you for your reply. I've tried to attach a sample here but I guess due to it's format, GitHub is complaining about it. I'm attaching it on Google Drive.

https://drive.google.com/file/d/1ug-lAbe7YPrLyX8n5SSlK1eSx69gmsnT

If you can take a look and see if there is too much or too little to do. If too much, you can give at least some directions, if possible, so I can work on it.

Anyways, thanks in advance!

from nfdump.

chrispassas avatar chrispassas commented on June 3, 2024

@gabrielmocan I spent some time looking at this and found a couple bugs that caused the module to not return error messages when it should parsing the nfdump file header.

I pushed the changes to master and your file now returns an error. This package currently only supports nfdump version 1 layout files. It appears your file is version 2 layout.

I'm going to look into what changed and see how much work it is to update.

from nfdump.

gabrielmocan avatar gabrielmocan commented on June 3, 2024

Thanks @chrispassas , I'll take a look. I'm also talking to @phaag, as he also working on Golang tooling for nfdump.

from nfdump.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.