Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562920 - app-admin/logstash-bin: support more upstream features
Summary: app-admin/logstash-bin: support more upstream features
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-12 12:23 UTC by Ferenc Erki
Modified: 2015-11-10 16:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
logstash-1.5.4-r1.ebuild (logstash-bin-1.5.4-r1.ebuild,1.43 KB, text/plain)
2015-10-12 12:24 UTC, Ferenc Erki
Details
logstash-bin-1.5.4-r1.ebuild (logstash-bin-1.5.4-r1.ebuild,1.43 KB, text/plain)
2015-10-12 12:24 UTC, Ferenc Erki
Details
logstash.logrotate-r1 (logstash.logrotate-r1,109 bytes, text/plain)
2015-10-12 12:25 UTC, Ferenc Erki
Details
logstash.initd-r1 (logstash.initd-r1,1.68 KB, text/plain)
2015-10-12 12:25 UTC, Ferenc Erki
Details
logstash.confd-r1 (logstash.confd-r1,798 bytes, text/x-matlab)
2015-10-12 12:26 UTC, Ferenc Erki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ferenc Erki 2015-10-12 12:23:20 UTC
The conf.d and initscript files for the current ebuild seems to miss several tuning possibility that is supported by Logstash upstream. Based on our chat with the current proxied maintainer, Tomas Mozes, I hereby send a bunch of updates that tries to improve the situation.

The following changes has been made/options made possible:
 - create dedicated logstash user/group
 - passing arbitrary logstash CLI options
 - set heap size
 - set additional Java options
 - set pidfile
 - set user/group for logstash process
 - set logfile
 - toggle GC logging
 - set config directory
 - set open file limit
 - set nice for logstash process
 - optionally try harder to kill the process upon stop
 - logrotate both *.log and *.err files

All the changes are based on what Logstash upstream supplies in their deb package.

Please review, and discuss the proposed changes :)

Reproducible: Always
Comment 1 Ferenc Erki 2015-10-12 12:24:10 UTC
Created attachment 414430 [details]
logstash-1.5.4-r1.ebuild
Comment 2 Ferenc Erki 2015-10-12 12:24:48 UTC
Created attachment 414432 [details]
logstash-bin-1.5.4-r1.ebuild
Comment 3 Ferenc Erki 2015-10-12 12:25:30 UTC
Created attachment 414434 [details]
logstash.logrotate-r1

new logrotate rules
Comment 4 Ferenc Erki 2015-10-12 12:25:57 UTC
Created attachment 414436 [details]
logstash.initd-r1

updated initscript
Comment 5 Ferenc Erki 2015-10-12 12:26:20 UTC
Created attachment 414438 [details]
logstash.confd-r1

updated conf.d file
Comment 6 Tomáš Mózes 2015-11-10 16:07:04 UTC
Thanks Ferenc for the patches, some of them got implemented to version 1.5.5:
https://bugs.gentoo.org/show_bug.cgi?id=564608

The next step for 2.0.0 will be to add more and maybe use the upstream debian format of configuration.