Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656828 - app-admin/logstash-bin-6.2.2 pipeline feature does not work with init script
Summary: app-admin/logstash-bin-6.2.2 pipeline feature does not work with init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-29 08:26 UTC by massimo
Modified: 2018-07-15 16:16 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description massimo 2018-05-29 08:26:16 UTC
When you want to use Logstash's pipeline feature the init script has to be modified, e.g., change from:
command_args="--path.config ${LS_CONF_DIR} --path.data ${LS_DATA_DIR} --path.logs ${LS_LOG_DIR} --path.settings ${LS_SETTINGS_DIR} ${LS_OPTS}"
to:
command_args="--path.data ${LS_DATA_DIR} --path.logs ${LS_LOG_DIR} --path.settings ${LS_SETTINGS_DIR} ${LS_OPTS}"

When the command line argument contains --path.config pipelines will not be loaded.

Reproducible: Always

Steps to Reproduce:
1. configure pipelines
2. start logstash

Actual Results:  
no pipelines are loaded

Expected Results:  
pipelines running

Eventually this can be solved by setting an option in /etc/conf.d/logstash which decides to run logstash with or without pipelines.
Comment 1 Tomáš Mózes 2018-07-13 13:41:56 UTC
Elastic seems to be using a different approach - the pipelines.yml contains the following:

- pipeline.id: main
  path.config: "/etc/logstash/conf.d/*.conf"

So this is backwards compatible.
Comment 2 Larry the Git Cow gentoo-dev 2018-07-15 16:16:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccbad95d8a5cc265e016d3cb27898bf0fd9db7e4

commit ccbad95d8a5cc265e016d3cb27898bf0fd9db7e4
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2018-07-13 13:55:22 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2018-07-15 16:16:50 +0000

    app-admin/logstash-bin: bump to 6.3.1
    
    Closes: https://bugs.gentoo.org/656828
    Package-Manager: Portage-2.3.42, Repoman-2.3.9

 app-admin/logstash-bin/Manifest                  |  1 +
 app-admin/logstash-bin/files/logstash.confd-r2   | 37 ++++++++++++
 app-admin/logstash-bin/files/logstash.initd-r2   | 69 ++++++++++++++++++++++
 app-admin/logstash-bin/files/pipelines.yml       |  6 ++
 app-admin/logstash-bin/logstash-bin-6.3.1.ebuild | 75 ++++++++++++++++++++++++
 5 files changed, 188 insertions(+)