Comments (9)
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.
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.
@eyalzek Your fix worked :) Thanks man .. thanks alot
from chef-logstash.
@imewish I wouldn't close this issue just yet, it should be fixed on the cookbook level.
from chef-logstash.
Okay.
from chef-logstash.
@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.
@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.
Thanks man :)
from chef-logstash.
@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)
- Unable to install logstash 2.3.2 getting plugin install errors HOT 1
- Problem in Amazon OpsWorks with Ubuntu 16.04 HOT 1
- Support JAVA_STACK variable
- LWRP "version" property is being ignored HOT 1
- Recipe fails with No resource or method named `logstash_instance' error
- Deprecated? HOT 2
- Version 0.13.0 fails on Chef 12 due to version declaration HOT 3
- failing on linux_user
- plugin guard not working HOT 3
- config not working HOT 1
- Switch to strings for hash keys instead of symbols
- tarball plugin install error minitar HOT 1
- Restart Server only on config change
- logrotate config has invalid path of just "*.log"
- specify init choice for service? HOT 4
- "agent" is not a valid parameter to Logstash anymore HOT 2
- Boolean properties are overriden by default values when set to false HOT 15
- chef/mixin/language incompatible with Chef 14 HOT 3
- logstash_instance fails when installing from source
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-logstash.