Code Monkey home page Code Monkey logo

Comments (10)

talevy avatar talevy commented on July 21, 2024

@wiibaa thanks for grouping these up!

from logstash-output-elasticsearch.

suyograo avatar suyograo commented on July 21, 2024

A closed index is blocked for read/write operations. Given that we have 2 options:

  1. Drop events when this error happens
  2. Funnel events to a file (and eventually to DLQ)

I am in favor of 2 for now instead of silently dropping events. Thoughts?

I don't think we should reopen closed indexes. Thats beyond the scope of LS, and is an administrative decision in ES

from logstash-output-elasticsearch.

andrewvc avatar andrewvc commented on July 21, 2024

+1 to the DLQ idea

from logstash-output-elasticsearch.

untergeek avatar untergeek commented on July 21, 2024

This will be solved when DLQ is implemented.

from logstash-output-elasticsearch.

Yumonra07 avatar Yumonra07 commented on July 21, 2024

What is the update on this? It would be pretty useful when importing old logs to an elk stack. I'm currently sorting my logs before inserting them so i can manually close older indices to free up memory.

from logstash-output-elasticsearch.

DarrenHart1989 avatar DarrenHart1989 commented on July 21, 2024

Is there any update on this issue?

Or is the only work around currently to ensure that the logstash output is not writing to closed indices, either by not closing them or stopping them before they can be written somehow?

from logstash-output-elasticsearch.

tomsommer avatar tomsommer commented on July 21, 2024

Would also appreciate a fix on this, retrying requests indefinitely to closed indexes makes no sense.

from logstash-output-elasticsearch.

talevy avatar talevy commented on July 21, 2024

Going back to the solutions that @suyograo mentioned...

there is Dead letter queue functionality in Logstash today, and so these can be handled in that way. I would not imagine Logstash doing anything about re-opening closed indices, but enabling Logstash to move documents to the DLQ when failed due to an index being closed is a good idea

from logstash-output-elasticsearch.

idelin avatar idelin commented on July 21, 2024

Haven't fixed this problem yet?

from logstash-output-elasticsearch.

untergeek avatar untergeek commented on July 21, 2024

I'm agreeing with the previously mentioned solution here. Using the DLQ to handle items not indexed is the appropriate way to approach this. Logstash is a stream processor and cannot be expected to re-open an index. While it is not documented here, it's a relatively simple procedure to enable the DLQ in Logstash.

from logstash-output-elasticsearch.

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.