GithubHelp home page GithubHelp logo

Comments (10)

justcallmegreg avatar justcallmegreg commented on July 20, 2024 3

It's a missing feature from syslog-ng OSE that has been never implemented. The docs says different though. This Note will be removed from the docs till the feature will be implemented. Try to use pre and suffix to ensure multi-line-messages to end.

An option could be implemented like multi-line-timeout(<N>) that closes the message if no new lines came in the last N secs.

from syslog-ng.

jasantiago-stratio avatar jasantiago-stratio commented on July 20, 2024 3

It also misses the last message in case of a file rotation with multi-line-mode(indented), I think that a multi-line-timeout parameter, as @ngergo wrote, would be a very nice feature.

from syslog-ng.

phemmer avatar phemmer commented on July 20, 2024 2

This needs to be reclassified as a bug. Using multi-line-mode (with prefix or indent) will result in message loss.
If syslog-ng shuts down, or receives a SIGHUP, the last message received by a source with multi-line-mode is dropped.

Syslog-ng needs to flush the buffer when it:

  • goes idle (configurable time period)
  • shuts down
  • reloads

from syslog-ng.

faxm0dem avatar faxm0dem commented on July 20, 2024 1

just stumbled upon this, and I agree with @pzoleex it is a bug as the last message never makes it.
That being said, 10 seconds would be kind of arbitrary. If this is fixed, please make it configurable

from syslog-ng.

talien avatar talien commented on July 20, 2024

Hi!

This is a docs bug, syslog-ng OSE never knew timeout with multi-line messages. It is an issue though, if there is no garbage arrives, syslog-ng would stop processing data from this source. But if you think it through, a missing garbage from the input means either the configuration is bad, or the input stream is bad. Garbage is mandatory to be able to process a whole message.

from syslog-ng.

pzoleex avatar pzoleex commented on July 20, 2024

I don't agree, garbage is not required. In most cases, there is no garbage at all, for example tomcat log starts with date and that's all. A newer date indicates that a new message started.

Not speaking about possible message loss in a normal situation.

from syslog-ng.

talien avatar talien commented on July 20, 2024

You are right, I wasn't correct. What I wanted to mean is when no garbage or prefix is present for a long time, then it can be a misconfiguration. And what I wanted to demonstrate is that the lack of timeout in the OSE is not a bug, instead it is a missing feature. It can be implemented after the logproto refactor is merged into the OSE.

from syslog-ng.

faxm0dem avatar faxm0dem commented on July 20, 2024

I stumbled again on this issue when trying to send some legacy multi-line logs from files with very low traffic. Many of those have one entry per file, and thus the log never makes it downstream.
It would at least make sense to have a SIGHUP "unstall" the event, but even that doesn't happen.

I'd love to have some idea as to if/when this will be implemented. thanks!

from syslog-ng.

faxm0dem avatar faxm0dem commented on July 20, 2024

👍

from syslog-ng.

faxm0dem avatar faxm0dem commented on July 20, 2024

I'm bumping this issue, as one of our users complained again ;-)

from syslog-ng.

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.