Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arey/logstash-exit-plugin
The exit plugin stops the LogStash agent
https://github.com/arey/logstash-exit-plugin
Last synced: 24 days ago
JSON representation
The exit plugin stops the LogStash agent
- Host: GitHub
- URL: https://github.com/arey/logstash-exit-plugin
- Owner: arey
- Created: 2014-11-01T15:39:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-06T18:55:16.000Z (about 10 years ago)
- Last Synced: 2024-10-12T12:45:45.396Z (3 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# LogStash Exit Plugin #
The exit plugin stops the LogStash agent.
## Quick install ##
git clone git://github.com/arey/logstash-exit-plugin.git
cd logstash-exit-plugin
set LOGSTASH_HOME=
%LOGSTASH_HOME%\bin\logstash agent --pluginpath .\plugins -f exit-example.conf
## Documentation ##
Stop a LogStash agent from a LogStash configuration file.
This plugin is usefull for testing or batch.
No configuration is required. The default exit code is 0 (normal exit).
A pause could be add in order LogStash may flushes its last outputs.
To stop a LogStash agent, one option would be to put a line at the end of the log such as:
END FILE
You can then use the exit plugin which is executed by LogStash when it hits that line.
The exit-example.conf configuration file provides an example.
Here an overview:
```
exit {
pause_second => 10
exit_code => 99
}
```