GithubHelp home page GithubHelp logo

Comments (7)

fbaligand avatar fbaligand commented on June 9, 2024

Some questions :

  • When pagination is enabled, jdbc plugin makes a first sql query for first page, sends all results as events in Logstash pipeline and then immediately makes a second sql query for second page ?
  • Your aggregate issue is that now you get one last tagged event for each page, and not anymore for each full query ?

from logstash-filter-aggregate.

iti888 avatar iti888 commented on June 9, 2024

•When pagination is enabled, jdbc plugin makes a first sql query for first page, sends all results as events in Logstash pipeline and then immediately makes a second sql query for second page ?

Yes. But since it is a separate query, it might take some time. So, immediately is no meaning.

•Your aggregate issue is that now you get one last tagged event for each page, and not anymore for each full query ?

Correct.

I think the root solution should be on JDBC plugin, need to issue a tag of "EOF" for determining the last record. Using timeout is not reliable. I was using 3 sec. but when system is too busy or something, last event timeout got triggered. I am using 20 sec now. But still might have problem when system hangs or CPU at 100%.

from logstash-filter-aggregate.

fbaligand avatar fbaligand commented on June 9, 2024

I agree that a new option in jdbc input to tag the last event would be the better and cleaner solution. Have you opened an issue for that ?

Then, concerning aggregate plugin, I have no better idea than increasing timeout, as you did.

from logstash-filter-aggregate.

iti888 avatar iti888 commented on June 9, 2024

I will open an issue with the jdbc input plugin in a minute.:)

from logstash-filter-aggregate.

iti888 avatar iti888 commented on June 9, 2024

added an issue to jdbc input plugin:
logstash-plugins/logstash-input-jdbc#188

from logstash-filter-aggregate.

fbaligand avatar fbaligand commented on June 9, 2024

I wish you this issue will be solved.

from logstash-filter-aggregate.

iti888 avatar iti888 commented on June 9, 2024

I hope so.

from logstash-filter-aggregate.

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.