Giter Club home page Giter Club logo

Comments (4)

robcowart avatar robcowart commented on June 13, 2024

Which version of Logstash, or perhaps more important, which version of the Logstash codec are you using? I have found the codec handles a lot of scenarios that you may encounter, but sometimes vendors will send data structured in an unexpected manner, which appears to be what you are seeing. You will need to open an issue for the Netflow codec (https://github.com/logstash-plugins/logstash-codec-netflow), and ideally provide a PCAP of the flows so that it can be investigated in detail. I am also happy to test such a PCAP myself if you can provide it.

from elastiflow.

timmernet avatar timmernet commented on June 13, 2024

I have opened an issue as you recommended. logstash-plugins/logstash-codec-netflow#87 and hopefully provided enough information to troubleshoot. Thank you

from elastiflow.

joriws avatar joriws commented on June 13, 2024

This OP's error is originating from Logstash's bad feature. UDP-layer do not send metadata to codec, meaning codec cannot analyze netflow-v9 template per host. So every template with same template ID will overwrite the template in logstash's memory.

Router A template 256 = xxx.yyy.zzz
Router B template 256 = aaa.bbb.ccc

So netflow will try to interpret netflow packet from A with later template received from B. Router B's netflow packet will be decoded correct unless A sends new upgraded template and then B's flows cause errors in the log described.

But above to be problem you need multiple devices sending netflow v9 templates. Do you have many firewalls?

To fix this you need to patch udp.rb to include "metadata" configuration option and capability to send this metadata upwards. Netflow-codec already understands it on code-level so only udp.rb and conf.d file needs to be fixed.

My elastiflow 10_input.logstash.conf
input {
udp {
type => "netflow"
metadata => true
port => 2055
codec => netflow {
versions => [5,9]
cache_save_path => "/var/lib/logstash/netflow_cache"
}
}
}

from elastiflow.

robcowart avatar robcowart commented on June 13, 2024

Resolved by #29 and c6d01da

from elastiflow.

Related Issues (20)

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.