Git Product home page Git Product logo

Comments (3)

havraji6 avatar havraji6 commented on July 16, 2024

Hello, thanks for the comment.

1. Use many plugins in one command line (eg: basic,http,dns)
The default timeout on output interfaces is WAIT. This will cause module to stop and wait when trying to send message to output interface with no connected clients. flow_meter -i t:11111,t:11112,t:11113 -p basic,http,dns -I eth1 was waiting for clients to connect to 11111 or 11112 port while you expected flows on 11113 port.

However WAIT as default timeout is not the best choice for exporter. We will change the default timeout to HALF_WAIT to prevent this behavior. You can always set timeout manually.
For more information about timeouts see logger -h trap or flow_meter -h trap

2. Can not auto-kill logger if use unix socket process
I will need more info. What was the output of logger when you killed flow_meter with TCP socket?

I killed flow_meter with TCP socket and logger returned an trap_recv() error if you mean this by auto-kill.

from nemea-modules.

whitetiger21022014 avatar whitetiger21022014 commented on July 16, 2024

Hi Havraji6,

  • I just tested with timeout=HALF_WAIT, it works so well
  • I just reconsider my old idea with auto-kill, with old commits, if used command pkill -9 meter and logger also be killed. Today with the same command (pkill -9 meter) and logger is still alive. It is my expected
    Thanks you!

from nemea-modules.

cejkato2 avatar cejkato2 commented on July 16, 2024

@whitetiger21022014 generally, it should be better to kill NEMEA modules using SIGINT - this usually breaks the main loop in modules...

That auto-kill "feature" you mentioned is something caused by "ending message". E.g. when we use logreplay, it sends this message by default in order to stop connected modules when the CSV file is read till the end.
However, I wish to get so called "signalling" feature finished - it will improve internal mechanism of e.g. this ending message use-case.

Thank you very much for all feedback and notes you have already provided.

from nemea-modules.

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.