Code Monkey home page Code Monkey logo

Comments (1)

dpmm99 avatar dpmm99 commented on August 14, 2024

I can't find the root cause for the SocketException. One of my messages apparently failed to send to Papertrail twice with the "Message too long" error, then it succeeded on the third try (appearing later in the log than messages with an earlier timestamp), so it's not exactly specific to the message text, either... but it might be influenced by the message text.

That's the weird part--it only seems to happen for the one instance of our service. Other instances have no problem logging >3KB messages, but their log messages are rarely more than ~1KB. This instance logs up to ~60KB messages sometimes, but most messages are >1KB, and after a fresh restart, I saw it fail when trying to log a ~1KB message, saying "Message too long." All the instances of our service use the same logging configurations and have multiple threads started with Task.Run(), but they process and log different kinds of data. I also couldn't reproduce the error on my Windows machine by sending the same message that seems to have caused it on the Linux host.

We're using Rfc5424 on .NET 7 with NLog 5.2.5 and NLog.Targets.Syslog 7.0.0. I updated to these from .NET 5, NLog 4.7.9, and NLog.Targets.Syslog 6.0.2 after I originally saw this issue, but this didn't change the problematic behavior. Like a few of the other open issues on this GitHub, our service would also stop logging altogether after a while, but I haven't checked for that behavior since updating.

I can provide one of the messages that failed--it was base-64 encoded garbage, clearly no unusual special characters or anything--but again, I couldn't make it happen on demand by resending the same message.

from nlog.targets.syslog.

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.