Comments (4)
Yes but I think we can't do much here with the TCP transport. Logstash does not respond in any way to the messages sent, so we never know if they were processed sucessfully. This is a limitation of the TCP input in Logstash, not of this library.
Your workaround seems sensible to me, maybe it's worth to report this to Logstash. It should be possible to open the TCP input in Logstash first when it is also capable of processing events.
Another alternative would be to use the Beats transport (https://python-logstash-async.readthedocs.io/en/stable/config.html#options-for-configuring-the-log-handler), recently added in python-logstash-async, as with the Beats protocol, Logstash will acknowledge the received events.
from python-logstash-async.
Another workaround could be to do a 10-15 second timeout after connection before starting to sending logs too. Not sure if thats a wanted design choice to do, though.
I'll look into the Beats transport, thank you.
from python-logstash-async.
I really don't want to add an arbitrary timeout before sending to Logstash.
IMO the problem is on the Logstash side and adding such quirks doesn't make it better.
from python-logstash-async.
Beats worked like a charm like you said, thank you.
from python-logstash-async.
Related Issues (20)
- Log record "extra" fields are missing when using LogstashFormatter HOT 6
- Log level of: "An error occurred while sending events: [Errno 104] Connection reset by peer" HOT 2
- Not working with Django HOT 5
- Crash when logstash server is down (gunicorn with gevent worker) HOT 1
- ImportError: cannot import name 'ParamSpec' from 'typing_extensions' on Python 3.11 HOT 1
- Build pipeline no longer works HOT 1
- Logstash TCP transport errors if not using a client certificate HOT 1
- Sqlite DB not vacuumed HOT 2
- ModuleNotFoundError: No module named 'fcntl' HOT 3
- Broken TCP connection and endless waiting for events from the dark HOT 2
- Makes get_queued_events FIFO or LIFO HOT 1
- Retrieve non flushed event count in sqlite db at start HOT 1
- 2.7.0 doesn't work under Windows HOT 1
- Can cause python code to hang in k8s deployment with python 3.11 HOT 4
- AttributeError: 'MemoryCache' object has no attribute 'get_non_flushed_event_count' HOT 3
- Transport endpoint is not connected HOT 10
- JSON Parse Failure on host Field (could not set field 'ip' on object) HOT 2
- BeatsTransport _batch_size HOT 3
- Improve LogProcessingWorker._fetch_events() performances HOT 2
- Modification to `constants.FORMATTER_RECORD_FIELD_SKIP_LIST` ignored since v3.0.0
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 python-logstash-async.