Comments (13)
Please let me know if it does the trick, if so I will backport.
from exabgp.
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.
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.
If syslog is not supported, how do we log messages when an event happens that requires an alarm ?
from exabgp.
The api is the way to get information.
from exabgp.
You could look like at examples as I authored a few presentations on the topic which are linked on the wiki
from exabgp.
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.
I am sorry that the documentation is so lacking ..
http://thomas.mangin.com/data/pdf/
from exabgp.
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.
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.
Thomas, thank you for your time, we will look into an alternative solution.
I'll close out this bug request.
from exabgp.
Will look into using the "connection close" message instead of using "peer reset" to signal network management when a peer goes down.
from exabgp.
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)
- Wiki / Invalid SWINOG Links HOT 2
- Update messages are missing Next Hop attribute intermittently HOT 3
- Flowspec flags incorrectly returned on API HOT 14
- Flowspec matches for unassigned protocols or imp types and codes HOT 4
- Error in ExaBGP HOT 2
- exabgpcli is not working on version 4.2.21 - CentOs 7 HOT 1
- unexpected messages to the API
- Add BGP Entropy Label Capability Attribute
- Exabgpcli command run and stuck HOT 3
- on 4.2.21, setup.py doesn't work with python3.11
- I have a use case to build RPM for RHEL9, First I have downloaded the source.tar.gz and used the redhat spec file. HOT 3
- Process brick after sending many announcements HOT 4
- ExaBGP restart & reload race condition HOT 2
- Is there an option to reduce the time the exabgp will re-try the connection establishment after the peering goes down (default seems to be 60s) HOT 6
- Python 3.12 needs an updated (vendoring) six.py in 4.2 branch HOT 4
- Too frustrating: converting from ExaBGP 3.4 to 4.2.21 HOT 20
- Bug to announce flow with redirect in IPv6 HOT 4
- How to ANNOUNCE large scale BGP route with ExaBGP's API HOT 3
- Limit usage of IPv4 and IPv6 flow routes
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 exabgp.