-
Notifications
You must be signed in to change notification settings - Fork 353
how to use config lwrp #426
Comments
|
I'm having the same problem. Although it says config is up to date, there is none created. |
Github issues isn't ment for getting support. You will find lots of helpful people over on the official logstash discussion boards. |
https://github.com/rackspace-cookbooks/elkstack/blob/master/recipes/logstash.rb#L45-L51 really helped me to start and understand how logstash_config works since it's not documented in this repo's Basically, I hope this helps you as I struggled personally for 1-2 hours on it. 😭 Example: logstash_config 'server' do
templates_cookbook 'elasticstack_internal'
templates 'output_elasticsearch' => 'output_elasticsearch.conf.erb',
'filename' => 'template_name.erb'
variables elasticsearch_ip: '127.0.0.1', another_variable: 'some value'
notifies :restart, 'logstash_service[server]'
end On a side note in response to @spuder comment, I've seen github issues used for support and think it's up to the discretion of the maintainer to decide if they want to allow that or not. There is no global rule AFAIK. |
I think this should've been documented from the start, to save endless hours and headache of anyone trying to use this cookbook. There's no documentation or example code to go from. Thanks @jmccann for providing the only working answer. |
hoping to get some help with the logstash config lwrp. can't seem to get the config lwrp to output any conf file.
logstash installs ok but the conf.d is empty
my recipe https://gist.github.com/dr3s/c3652d8f144049c0ed6e
my attributes https://gist.github.com/dr3s/1fc7d107107b0f7f07c2
The text was updated successfully, but these errors were encountered: