Giter VIP home page Giter VIP logo

Comments (9)

praveenuchiha avatar praveenuchiha commented on September 21, 2024

Same issue, doesnt work for me either with LS 2.3.4 and ubuntu 14.04.
Also @imewish when you run the cookbook does [apt-get-update-periodic] execute without fail?
I think it bugs out when there is user/group associated with logstash and throws "Ran apt-get update returned 100" error.

Update: Fixed the service issue by following #452
The apt-get-update still throws "Returned 100 error"

Update 2: Fixed the apt-get-update issue. The problem was with my VM.

from chef-logstash.

eyalzek avatar eyalzek commented on September 21, 2024

I faced the same issue, the problem was with the service definition as far as I can tell. To fix it I had to change the following line:
https://github.com/lusis/chef-logstash/blob/master/templates/default/sv-logstash-run.erb#L12
and name the env variable LS_JAVA_OPTS instead of just JAVA_OPTS.

I created 2 files in my local cookbook's templates folder; sv-logstash-run.erb & sv-logstash-log-run.erb, both are the same as the files that you can find here:
https://github.com/lusis/chef-logstash/tree/master/templates/default

The only change being the renaming of the aforementioned environment variable. Then, in order to use these templates instead of the ones coming from the cookbook, set this attribute in your recipe:
node.default['logstash']['instance_default']['service_templates_cookbook'] = cookbook_name

from chef-logstash.

imewish avatar imewish commented on September 21, 2024

@eyalzek Your fix worked :) Thanks man .. thanks alot

from chef-logstash.

eyalzek avatar eyalzek commented on September 21, 2024

@imewish I wouldn't close this issue just yet, it should be fixed on the cookbook level.

from chef-logstash.

imewish avatar imewish commented on September 21, 2024

Okay.

from chef-logstash.

imewish avatar imewish commented on September 21, 2024

@eyalzek BTW, i came across new problem with thiscookbook. How can we use custom config templates with with this cookbook? instead of these.
https://github.com/lusis/chef-logstash/tree/master/templates/default/config

from chef-logstash.

eyalzek avatar eyalzek commented on September 21, 2024

@imewish set node.default['logstash']['instance_default']['config_templates_cookbook'] to your wrapper cookbook's name. Besides that, you have to configure config_templates and pass variables if you need them.

Use this as reference:
https://github.com/rackspace-cookbooks/elkstack/blob/master/recipes/logstash.rb#L45
https://github.com/rackspace-cookbooks/elkstack/blob/master/attributes/logstash.rb#L33

from chef-logstash.

imewish avatar imewish commented on September 21, 2024

Thanks man :)

from chef-logstash.

imewish avatar imewish commented on September 21, 2024

@eyalzek did you face a time lag while installing plugins? when use the resource provider logstash_plugins for plugin installation?

from chef-logstash.

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.