Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Add a configure option that logstash will stop on an exception repeats for several times #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sbbird
Copy link

@sbbird sbbird commented Aug 18, 2014

The configure option will be like:

kafka{
...
logstash_stop_on_exception_repeat => 3 ... # number (optional), default: 0 (never stop)
...
}

0 for never stop

Yiqing Zhu added 2 commits August 18, 2014 17:26
…eats for several times. The default value is 0, which implies logstash never stop.

output{
    kafka{
        ...
        logstash_stop_on_exception_repeat => 3
        ...
    }
}

TODO:
Now the way of stopping logstash is to raise an exception
Need to find a more elegant way to that.
Modified raised exception to ShutdownSignal
@joekiller
Copy link
Owner

Thanks for this. I'll review it soon.
On Aug 18, 2014 5:42 AM, "sbbird.zhu" [email protected] wrote:

The configure option will be like:

kafka{
...
logstash_stop_on_exception_repeat => 3 ... # number (optional), default: 0
(never stop)
...
}

0 for never stop

You can merge this Pull Request by running

git pull https://github.com/sbbird/logstash-kafka stop-on-exception-repeats

Or view, comment on, or merge it at:

#32
Commit Summary

  • Add a configure option so that logstash will stop on an exception
    repeats for several times. The default value is 0, which implies logstash
    never stop.
  • Added the same configuration option on input.

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#32.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants