Code Monkey home page Code Monkey logo

Comments (4)

eht16 avatar eht16 commented on June 30, 2024

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.

JonasKs avatar JonasKs commented on June 30, 2024

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.

eht16 avatar eht16 commented on June 30, 2024

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.

JonasKs avatar JonasKs commented on June 30, 2024

Beats worked like a charm like you said, thank you.

from python-logstash-async.

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.