Code Monkey home page Code Monkey logo

Comments (13)

thomas-mangin avatar thomas-mangin commented on June 11, 2024

Please let me know if it does the trick, if so I will backport.

from exabgp.

stilwelld avatar stilwelld commented on June 11, 2024

Thomas, thank you for the quick reply, I don't think this will resolve the issue.
When the reactor/peer _reset() is called it will call self._close(), which calls self.proto.close(message).
In reactor/protocol.close() the message is logged as DEBUG, we need that changed to INFO to avoid logging all packet traffic.
[ src/exabgp/reactor/protocol.py ]
before:
123 log.debug(reason, self.connection.session())
after:
123 log.info(reason, self.connection.session())

from exabgp.

thomas-mangin avatar thomas-mangin commented on June 11, 2024

The syslog messages are not a supported api. It should not be relied upon as I will be changed if/when required. If there is a way to get things working differently I am open to suggestions.

from exabgp.

stilwelld avatar stilwelld commented on June 11, 2024

If syslog is not supported, how do we log messages when an event happens that requires an alarm ?

from exabgp.

thomas-mangin avatar thomas-mangin commented on June 11, 2024

The api is the way to get information.

from exabgp.

thomas-mangin avatar thomas-mangin commented on June 11, 2024

You could look like at examples as I authored a few presentations on the topic which are linked on the wiki

from exabgp.

stilwelld avatar stilwelld commented on June 11, 2024

I read the following: https://github.com/Exa-Networks/exabgp/wiki/Controlling-ExaBGP-:-interacting-from-the-API
But I don't see how that would be used in generating a log message, is there another page I should read ?

from exabgp.

thomas-mangin avatar thomas-mangin commented on June 11, 2024

I am sorry that the documentation is so lacking ..

http://thomas.mangin.com/data/pdf/

from exabgp.

stilwelld avatar stilwelld commented on June 11, 2024

I looked thru the presentations, very interesting work, but I am still not seeing the connection between the API and generating log messages.

Let me restate the issue, in version 3.4 a log message was written for "peer reset" at the INFO level when a peer was brought down or restarted. In our setup this would generate an alarm so the operations team would know one of the elements went offline.
When we upgraded to 4.2.21 the log level was changed to DEBUG in the protocol.py close function. Since we don't run in DEBUG mode on our production servers we no longer receive the message in the log.
The request was to change the log level in protocol.py close() back to INFO level so we can receive the message in the logs.

from exabgp.

thomas-mangin avatar thomas-mangin commented on June 11, 2024

I can not see how I can be clearer.

You decided to parse information printed for humans to read for non-informational use but as a way to interface with the program. This SYSLOG message is not meant to be used by other software and how syslog messages are generated may change again.

You can either go back to using 3.4 or start using 4.2 or master and edit the lines of code you wish to see changed to have it printed when you desire.

I am sure it is an unsatisfactory answer, sorry.

from exabgp.

stilwelld avatar stilwelld commented on June 11, 2024

Thomas, thank you for your time, we will look into an alternative solution.
I'll close out this bug request.

from exabgp.

stilwelld avatar stilwelld commented on June 11, 2024

Will look into using the "connection close" message instead of using "peer reset" to signal network management when a peer goes down.

from exabgp.

thomas-mangin avatar thomas-mangin commented on June 11, 2024

If you find any problem while looking into it, feel free to re-open this issue.
I wish you good luck!

from exabgp.

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.