Code Monkey home page Code Monkey logo

Comments (3)

okkez avatar okkez commented on May 28, 2024

In this configuration, fluent-plugin-concat flushes all buffer each 5sec (flush_interval) if events does not match multiline_start_regexp.

For details:

A event occurs for each second.

timeout

  1. event {message: "MATCH multiline_start_regexp"
  2. event {message: "NOT MATCH multiline_start_regexp"
  3. event {message: "NOT MATCH multiline_start_regexp"
  4. event {message: "NOT MATCH multiline_start_regexp"
  5. event {message: "NOT MATCH multiline_start_regexp"
    • 5 seconds elapsed: flush fluent-plugin-concat internal buffer(5lines), emit error event and log timeout error

not timeout

  1. event {message: "MATCH multiline_start_regexp"
  2. event {message: "NOT MATCH multiline_start_regexp"
  3. event {message: "NOT MATCH multiline_start_regexp"
  4. event {message: "NOT MATCH multiline_start_regexp"
  5. event {message: "MATCH multiline_start_regexp"
    • flush fluent-plugin-concat internal buffer (4lines) and reset interval

from fluent-plugin-concat.

mpas avatar mpas commented on May 28, 2024

I my case it seems that some similar log messages are actually concatenated correctly but some not. But these log messages are almost similar.

Example: wich is ok

Caused by: java.net.UnknownHostException: dummy-db
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at org.postgresql.core.PGStream.<init>(PGStream.java:61)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:121)
    ... 97 common frames omitted

Example: on which i get an error

Caused by: java.net.UnknownHostException: dummy-db
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at org.postgresql.core.PGStream.<init>(PGStream.java:61)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:121)
    ... 89 common frames omitted

These are offcourse part of a bigger log-stream but i am lost in why i get an error.
2016-05-30 18:34:24 +0000 [warn]: dump an error event: error_class=Fluent::ConcatFilter::TimeoutError error="Timeout flush: ...

Any clue or hint on how i can get to know the reason why these messages are not concatenated ok?

from fluent-plugin-concat.

okkez avatar okkez commented on May 28, 2024

For example. 1st Java exception is raised at 00:00:00, then 2nd Java exception is raised at 00:00:06 (after flush_interval).
You get concatenated 1st Java exception's logs.
2nd Java exception's logs are not concatenated and occured timeout error because 3rd Java exception has not been raised.

You cannot get concatenated log for each Java exception when you use multiline_start_regexp only.
You can get concatenated log for each Java exception when use both multiline_start_regexp and multiline_end_regexp.

from fluent-plugin-concat.

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.